Table of Contents

Class FileNameAndStreamModel

Namespace
Whipstaff.AspNetCore.FileTransfer
Assembly
Whipstaff.AspNetCore.dll

POCO object representing a file name and the respective stream. While FileStream has both properties, this is aimed at In Memory File Manipulation.

public sealed class FileNameAndStreamModel
Inheritance
FileNameAndStreamModel
Inherited Members

Constructors

FileNameAndStreamModel(string, Stream)

Initializes a new instance of the FileNameAndStreamModel class.

public FileNameAndStreamModel(string fileName, Stream fileStream)

Parameters

fileName string

The filename to associate with the stream.

fileStream Stream

The stream of file content.

Properties

FileName

Gets the file name.

public string FileName { get; }

Property Value

string

FileStream

Gets the file stream.

public Stream FileStream { get; }

Property Value

Stream