TransferManager.DownloadAsync Method (CloudBlob, String, DownloadOptions, TransferContext, CancellationToken)
Download an Azure blob from Azure Blob Storage.
Namespace: Microsoft.WindowsAzure.Storage.DataMovement
Assembly: Microsoft.WindowsAzure.Storage.DataMovement (in Microsoft.WindowsAzure.Storage.DataMovement.dll)
Syntax
public static Task DownloadAsync(
CloudBlob sourceBlob,
string destPath,
DownloadOptions options,
TransferContext context,
CancellationToken cancellationToken
)
Parameters
sourceBlob
Type: Microsoft.WindowsAzure.Storage.Blob.CloudBlobThe CloudBlob that is the source Azure blob.
destPath
Type: System.StringPath to the destination file.
options
Type: Microsoft.WindowsAzure.Storage.DataMovement.DownloadOptionsA DownloadOptions object that specifies additional options for the operation.
context
Type: Microsoft.WindowsAzure.Storage.DataMovement.TransferContextA TransferContext object that represents the context for the current operation.
cancellationToken
Type: System.Threading.CancellationTokenA 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.
See Also
DownloadAsync Overload
TransferManager Class
Microsoft.WindowsAzure.Storage.DataMovement Namespace
Return to top