HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Constructor UploadSource

    UploadSource(string, long, string?)

    Initializes a new instance of the UploadSource class with the specified file name, length and content type.

    Declaration
    protected UploadSource(string fileName, long length, string? contentType = null)
    Parameters
    Type Name Description
    string fileName

    The name of the file, which the service receives.

    long length

    The length of the content in bytes.

    string contentType

    The content type of the file, such as image/png, which the service receives. Default is null, which sends none.

    Exceptions
    Type Condition
    ArgumentException

    fileName is empty.

    ArgumentOutOfRangeException

    length is negative.

    © Singulink. All rights reserved.