Class HttpFile
Represents a file.
Inheritance
System.Object
HttpFile
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cqrs.WebApi.Formatters.FormMultipart.Infrastructure
Assembly: Cqrs.WebApi.dll
Syntax
public class HttpFile
Constructors
HttpFile()
Instantiate and initialise a new instance of HttpFile
Declaration
public HttpFile()
HttpFile(String, String, Byte[])
Instantiate and initialise a new instance of HttpFile
Declaration
public HttpFile(string fileName, string mediaType, byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | |
System.String | mediaType | |
System.Byte[] | buffer |
Properties
Buffer
The content of the file
Declaration
public byte[] Buffer { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
FileName
The name of the file.
Declaration
public string FileName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MediaType
The media type of the file.
Declaration
public string MediaType { get; set; }
Property Value
Type | Description |
---|---|
System.String |