Secure Exchanges SDK Documentation
Search Results for

    Show / Hide Table of Contents

    Class FileArgs

    FileArgs are the defenition of a local file. The binary are loaded it's esesntially represent a chuck of a file

    Inheritance
    object
    FileArgs
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    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
    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

    Extension Methods

    ExtensionHelper.CopySameNameAndTypeProperties<T, S>(T, S)
    In this article
    Back to top Secure Exchanges Inc. - Documentation