Class FileArgs
FileArgs are the defenition of a local file. The binary are loaded it's esesntially represent a chuck of a file
Inheritance
System.Object
FileArgs
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: SecureExchangesSDK.Models
Assembly: SecureExchangesSDK.dll
Syntax
public class FileArgs
Constructors
FileArgs(Byte[], String, String)
Initialize the FileArgs with the binary, filename, and mimeType. Use it if you only need one part in your file
Declaration
public FileArgs(byte[] binary, string fileName, string mimeType)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | binary | The binary of the file |
System.String | fileName | The file name |
System.String | mimeType | The MimeType of the file |
FileArgs(Byte[], String, String, Int64, Int64)
Inintialize the FileArgs with the binary. Use it if your files contains multiple part.
Declaration
public FileArgs(byte[] binary, string fileName, string mimeType, long chuckPart, long totalPart)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | binary | The chuck binary |
System.String | fileName | The full name |
System.String | mimeType | The MimeType of the file |
System.Int64 | chuckPart | The chuckPart |
System.Int64 | totalPart | The totalPart |
Properties
Binary
The binary of the file
Declaration
public byte[] Binary { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
ChunckPart
Represent the chunck part of the main file
Declaration
public long ChunckPart { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
FileName
The file Name of the file
Declaration
public string FileName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MimeType
The MimeType of the file
Declaration
public string MimeType { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TotalPart
Represent to total number of chunck that file contains
Declaration
public long TotalPart { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |