TransferManager.DownloadAsync Method (CloudBlob, Stream, DownloadOptions, SingleTransferContext, CancellationToken)
Updated: January 5, 2017
Download an Azure blob from Azure Blob Storage.
Assembly: Microsoft.WindowsAzure.Storage.DataMovement (in Microsoft.WindowsAzure.Storage.DataMovement.dll)
public static Task DownloadAsync( CloudBlob sourceBlob, Stream destStream, DownloadOptions options, SingleTransferContext context, CancellationToken cancellationToken )
Parameters
- sourceBlob
-
Type:
Microsoft.WindowsAzure.Storage.Blob.CloudBlob
The CloudBlob that is the source Azure blob.
- destStream
-
Type:
System.IO.Stream
A Stream object representing the destination stream.
- options
-
Type:
Microsoft.WindowsAzure.Storage.DataMovement.DownloadOptions
A DownloadOptions 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.TaskA Task object that represents the asynchronous operation.
Show: