Class ContentMemoryStream
A MemoryStream implementation with content type.
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public class ContentMemoryStream : MemoryStream, IDisposable
Constructors
ContentMemoryStream()
Initializes a new instance of the ContentMemoryStream.
Declaration
public ContentMemoryStream()
ContentMemoryStream(Byte[], String)
Initializes a new instance of the ContentMemoryStream.
Declaration
public ContentMemoryStream(byte[] buffer, string contentType)
Parameters
| Type | Name | Description |
|---|---|---|
| Byte[] | buffer | The array of unsigned bytes from which to create the current stream. |
| String | contentType | The optional content type. The default value is "application/octet-stream". |
Properties
ContentDisposition
Gets or sets the content disposition HTTP header value.
Declaration
public string ContentDisposition { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
ContentType
Gets the content type of this stream.
Declaration
public string ContentType { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
FileName
Gets or sets the download file name.
Declaration
public string FileName { get; set; }
Property Value
| Type | Description |
|---|---|
| String |