共用方式為


ITransferManager.DownloadAsync Method

Definition

Overloads

DownloadAsync(CloudBlob, String, DownloadOptions, SingleTransferContext, CancellationToken)

Download an Azure blob from Azure Blob Storage.

DownloadAsync(CloudFile, String, DownloadOptions, SingleTransferContext, CancellationToken)

Download an Azure file from Azure File Storage.

DownloadAsync(CloudBlob, String, DownloadOptions, SingleTransferContext, CancellationToken)
DownloadAsync(CloudFile, String, DownloadOptions, SingleTransferContext, CancellationToken)

DownloadAsync(CloudBlob, String, DownloadOptions, SingleTransferContext, CancellationToken)

Download an Azure blob from Azure Blob Storage.

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

Parameters

sourceBlob
CloudBlob

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

destPath
String

Path to the destination file.

options
DownloadOptions

A Microsoft.WindowsAzure.Storage.DataMovement.DownloadOptions 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

DownloadAsync(CloudFile, String, DownloadOptions, SingleTransferContext, CancellationToken)

Download an Azure file from Azure File Storage.

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

Parameters

sourceFile
CloudFile

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

destPath
String

Path to the destination file.

options
DownloadOptions

A Microsoft.WindowsAzure.Storage.DataMovement.DownloadOptions 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

DownloadAsync(CloudBlob, String, DownloadOptions, SingleTransferContext, CancellationToken)

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

Parameters

sourceBlob
CloudBlob
destPath
String
options
Microsoft.WindowsAzure.Storage.DataMovement.DownloadOptions
context
Microsoft.WindowsAzure.Storage.DataMovement.SingleTransferContext
cancellationToken
CancellationToken

Returns

Applies to

DownloadAsync(CloudFile, String, DownloadOptions, SingleTransferContext, CancellationToken)

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

Parameters

sourceFile
CloudFile
destPath
String
options
Microsoft.WindowsAzure.Storage.DataMovement.DownloadOptions
context
Microsoft.WindowsAzure.Storage.DataMovement.SingleTransferContext
cancellationToken
CancellationToken

Returns

Applies to