ITransferManager.UploadAsync Method

Definition

Overloads

UploadAsync(String, CloudBlob, UploadOptions, SingleTransferContext, CancellationToken)

Upload a file to Azure Blob Storage.

UploadAsync(String, CloudFile, UploadOptions, SingleTransferContext, CancellationToken)

Upload a file to Azure File Storage.

UploadAsync(String, CloudBlob, UploadOptions, SingleTransferContext, CancellationToken)
UploadAsync(String, CloudFile, UploadOptions, SingleTransferContext, CancellationToken)

UploadAsync(String, CloudBlob, UploadOptions, SingleTransferContext, CancellationToken)

Upload a file to Azure Blob Storage.

public System.Threading.Tasks.Task UploadAsync (string sourcePath, Microsoft.Azure.Storage.Blob.CloudBlob destBlob, Microsoft.Azure.Storage.DataMovement.UploadOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context, System.Threading.CancellationToken cancellationToken);
abstract member UploadAsync : string * Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.DataMovement.UploadOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function UploadAsync (sourcePath As String, destBlob As CloudBlob, options As UploadOptions, context As SingleTransferContext, cancellationToken As CancellationToken) As Task

Parameters

sourcePath
String

Path to the source file.

destBlob
CloudBlob

The Microsoft.Azure.Storage.Blob.CloudBlob that is the destination Azure blob.

options
UploadOptions

An Microsoft.WindowsAzure.Storage.DataMovement.UploadOptions object that specifies additional options for the operation.

context
SingleTransferContext

A Microsoft.WindowsAzure.Storage.DataMovement.TransferContext object that represents the context for the current operation.

cancellationToken
CancellationToken

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

Returns

A System.Threading.Tasks.Task object that represents the asynchronous operation.

Applies to

UploadAsync(String, CloudFile, UploadOptions, SingleTransferContext, CancellationToken)

Upload a file to Azure File Storage.

public System.Threading.Tasks.Task UploadAsync (string sourcePath, Microsoft.Azure.Storage.File.CloudFile destFile, Microsoft.Azure.Storage.DataMovement.UploadOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context, System.Threading.CancellationToken cancellationToken);
abstract member UploadAsync : string * Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.DataMovement.UploadOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function UploadAsync (sourcePath As String, destFile As CloudFile, options As UploadOptions, context As SingleTransferContext, cancellationToken As CancellationToken) As Task

Parameters

sourcePath
String

Path to the source file.

destFile
CloudFile

The Microsoft.Azure.Storage.File.CloudFile that is the destination Azure file.

options
UploadOptions

An Microsoft.WindowsAzure.Storage.DataMovement.UploadOptions object that specifies additional options for the operation.

context
SingleTransferContext

A Microsoft.WindowsAzure.Storage.DataMovement.TransferContext object that represents the context for the current operation.

cancellationToken
CancellationToken

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

Returns

A System.Threading.Tasks.Task object that represents the asynchronous operation.

Applies to

UploadAsync(String, CloudBlob, UploadOptions, SingleTransferContext, CancellationToken)

public System.Threading.Tasks.Task UploadAsync (string sourcePath, Microsoft.WindowsAzure.Storage.Blob.CloudBlob destBlob, Microsoft.WindowsAzure.Storage.DataMovement.UploadOptions options, Microsoft.WindowsAzure.Storage.DataMovement.SingleTransferContext context, System.Threading.CancellationToken cancellationToken);
abstract member UploadAsync : string * Microsoft.WindowsAzure.Storage.Blob.CloudBlob * Microsoft.WindowsAzure.Storage.DataMovement.UploadOptions * Microsoft.WindowsAzure.Storage.DataMovement.SingleTransferContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function UploadAsync (sourcePath As String, destBlob As CloudBlob, options As UploadOptions, context As SingleTransferContext, cancellationToken As CancellationToken) As Task

Parameters

sourcePath
String
destBlob
CloudBlob
options
Microsoft.WindowsAzure.Storage.DataMovement.UploadOptions
context
Microsoft.WindowsAzure.Storage.DataMovement.SingleTransferContext
cancellationToken
CancellationToken

Returns

Applies to

UploadAsync(String, CloudFile, UploadOptions, SingleTransferContext, CancellationToken)

public System.Threading.Tasks.Task UploadAsync (string sourcePath, Microsoft.WindowsAzure.Storage.File.CloudFile destFile, Microsoft.WindowsAzure.Storage.DataMovement.UploadOptions options, Microsoft.WindowsAzure.Storage.DataMovement.SingleTransferContext context, System.Threading.CancellationToken cancellationToken);
abstract member UploadAsync : string * Microsoft.WindowsAzure.Storage.File.CloudFile * Microsoft.WindowsAzure.Storage.DataMovement.UploadOptions * Microsoft.WindowsAzure.Storage.DataMovement.SingleTransferContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function UploadAsync (sourcePath As String, destFile As CloudFile, options As UploadOptions, context As SingleTransferContext, cancellationToken As CancellationToken) As Task

Parameters

sourcePath
String
destFile
CloudFile
options
Microsoft.WindowsAzure.Storage.DataMovement.UploadOptions
context
Microsoft.WindowsAzure.Storage.DataMovement.SingleTransferContext
cancellationToken
CancellationToken

Returns

Applies to