CloudBlockBlob.UploadFromFileAsync Method (String, FileMode, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

 

Initiates an asynchronous operation to upload a file to a blob. If the blob already exists, it will be overwritten.

Namespace:   Microsoft.WindowsAzure.Storage.Blob
Assembly:  Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

Syntax

[DoesServiceRequestAttribute]
public Task UploadFromFileAsync(
    string path,
    FileMode mode,
    AccessCondition accessCondition,
    BlobRequestOptions options,
    OperationContext operationContext,
    CancellationToken cancellationToken
)
<DoesServiceRequestAttribute>
Public Function UploadFromFileAsync (
    path As String,
    mode As FileMode,
    accessCondition As AccessCondition,
    options As BlobRequestOptions,
    operationContext As OperationContext,
    cancellationToken As CancellationToken
) As Task

Parameters

  • path
    Type: System.String

    A string containing the file path providing the blob content.

Return Value

Type: System.Threading.Tasks.Task

A Task object that represents the asynchronous operation.

Implements

ICloudBlob.UploadFromFileAsync(String, FileMode, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

See Also

UploadFromFileAsync Overload
CloudBlockBlob Class
Microsoft.WindowsAzure.Storage.Blob Namespace

Return to top