TransferManagerDownloadAsync Method (CloudBlob, Stream, DownloadOptions, SingleTransferContext) |
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,
Stream destStream,
DownloadOptions options,
SingleTransferContext context
)
Public Shared Function DownloadAsync (
sourceBlob As CloudBlob,
destStream As Stream,
options As DownloadOptions,
context As SingleTransferContext
) As Task
public:
static Task^ DownloadAsync(
CloudBlob^ sourceBlob,
Stream^ destStream,
DownloadOptions^ options,
SingleTransferContext^ context
)
static member DownloadAsync :
sourceBlob : CloudBlob *
destStream : Stream *
options : DownloadOptions *
context : SingleTransferContext -> Task
Parameters
- sourceBlob
- Type: CloudBlob
The CloudBlob that is the source Azure blob. - destStream
- Type: System.IOStream
A Stream object representing the destination stream. - 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.
Return Value
Type:
TaskA
Task object that represents the asynchronous operation.
See Also