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
stringThe filename to associate with the stream.
fileStream
StreamThe stream of file content.
Properties
FileName
Gets the file name.
public string FileName { get; }
Property Value
FileStream
Gets the file stream.
public Stream FileStream { get; }