Click or drag to resize

TransferManagerDownloadAsync Method (CloudFile, Stream, DownloadOptions, SingleTransferContext, CancellationToken)

Download an Azure file from Azure File 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(
	CloudFile sourceFile,
	Stream destStream,
	DownloadOptions options,
	SingleTransferContext context,
	CancellationToken cancellationToken
)

Parameters

sourceFile
Type: CloudFile
The CloudFile that is the source Azure file.
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.
cancellationToken
Type: System.ThreadingCancellationToken
A CancellationToken object to observe while waiting for a task to complete.

Return Value

Type: Task
A Task object that represents the asynchronous operation.
See Also