TransferManager.UploadAsync Method (String, CloudBlob, UploadOptions, SingleTransferContext, CancellationToken)

 

Updated: January 5, 2017

Upload a file to Azure Blob Storage.

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

public static Task UploadAsync(
	string sourcePath,
	CloudBlob destBlob,
	UploadOptions options,
	SingleTransferContext context,
	CancellationToken cancellationToken
)

Parameters

sourcePath
Type: System.String

Path to the source file.

destBlob
Type: Microsoft.WindowsAzure.Storage.Blob.CloudBlob

The CloudBlob that is the destination Azure blob.

options
Type: Microsoft.WindowsAzure.Storage.DataMovement.UploadOptions

An UploadOptions object that specifies additional options for the operation.

context
Type: Microsoft.WindowsAzure.Storage.DataMovement.SingleTransferContext

A SingleTransferContext object that represents the context for the current operation.

cancellationToken
Type: System.Threading.CancellationToken

A CancellationToken object to observe while waiting for a task to complete.

Return Value

Type: System.Threading.Tasks.Task

A Task object that represents the asynchronous operation.

Return to top
Show: