TransferManagerDownloadAsync Method (CloudBlob, String, DownloadOptions, SingleTransferContext, CancellationToken) |
Download an Azure blob from Azure Blob Storage.
Namespace:
Microsoft.Azure.Storage.DataMovement
Assembly:
Microsoft.Azure.Storage.DataMovement (in Microsoft.Azure.Storage.DataMovement.dll) Version: 2.0.1.0 (2.0.1.0)
Syntax public static Task DownloadAsync(
CloudBlob sourceBlob,
string destPath,
DownloadOptions options,
SingleTransferContext context,
CancellationToken cancellationToken
)
Public Shared Function DownloadAsync (
sourceBlob As CloudBlob,
destPath As String,
options As DownloadOptions,
context As SingleTransferContext,
cancellationToken As CancellationToken
) As Task
public:
static Task^ DownloadAsync(
CloudBlob^ sourceBlob,
String^ destPath,
DownloadOptions^ options,
SingleTransferContext^ context,
CancellationToken cancellationToken
)
static member DownloadAsync :
sourceBlob : CloudBlob *
destPath : string *
options : DownloadOptions *
context : SingleTransferContext *
cancellationToken : CancellationToken -> Task
Parameters
- sourceBlob
- Type: CloudBlob
The CloudBlob that is the source Azure blob. - destPath
- Type: SystemString
Path to the destination file. - options
- Type: Microsoft.Azure.Storage.DataMovementDownloadOptions
A DownloadOptions object that specifies additional options for the operation. - context
- Type: Microsoft.Azure.Storage.DataMovementSingleTransferContext
A SingleTransferContext object that represents the context for the current operation. - cancellationToken
- Type: System.ThreadingCancellationToken
A CancellationToken object to observe while waiting for a task to complete.
Return Value
Type:
TaskA
Task object that represents the asynchronous operation.
See Also