Class FileArgs
FileArgs are the defenition of a local file. The binary are loaded it's esesntially represent a chuck of a file
Inherited Members
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 |
|---|---|---|
| byte[] | binary | The binary of the file |
| string | fileName | The file name |
| string | mimeType | The MimeType of the file |
FileArgs(byte[], string, string, long, long)
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 |
|---|---|---|
| byte[] | binary | The chuck binary |
| string | fileName | The full name |
| string | mimeType | The MimeType of the file |
| long | chuckPart | The chuckPart |
| long | totalPart | The totalPart |
Properties
Binary
The binary of the file
Declaration
public byte[] Binary { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
ChunckPart
Represent the chunck part of the main file
Declaration
public long ChunckPart { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
FileName
The file Name of the file
Declaration
public string FileName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MimeType
The MimeType of the file
Declaration
public string MimeType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TotalPart
Represent to total number of chunck that file contains
Declaration
public long TotalPart { get; set; }
Property Value
| Type | Description |
|---|---|
| long |