FileData Class
Assembly: PTS.Files.dll
Syntax
Inheritance
System.Object
FileData
Constructors
FileData()
Declaration
FileData(Byte[], String, String)
Declaration
public FileData(byte[] data, string fileName, string contentType)
Parameters
Type |
Name |
Description |
System.Byte[] |
data |
|
System.String |
fileName |
|
System.String |
contentType |
|
FileData(Stream, String, String, Boolean)
Declaration
public FileData(Stream stream, string fileName, string contentType, bool copyStream = true)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.String |
fileName |
|
System.String |
contentType |
|
System.Boolean |
copyStream |
|
Properties
ContentLength
Declaration
public int ContentLength { get; protected set; }
Property Value
Type |
Description |
System.Int32 |
|
ContentType
Declaration
public string ContentType { get; protected set; }
Property Value
Type |
Description |
System.String |
|
FileName
Declaration
public string FileName { get; protected set; }
Property Value
Type |
Description |
System.String |
|
HasContent
Declaration
public bool HasContent { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public Stream InputStream { get; protected set; }
Property Value
Type |
Description |
System.IO.Stream |
|
Methods
GetBytes()
Declaration
Returns
Type |
Description |
System.Byte[] |
|
NotEmpty(FileData)
Declaration
public static bool NotEmpty(FileData file)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Extension Methods