TransferManager.DownloadAsync Method (CloudFile, Stream, DownloadOptions, SingleTransferContext)

 

Updated: January 5, 2017

Download an Azure file from Azure File Storage.

Namespace:   Microsoft.WindowsAzure.Storage.DataMovement
Assembly:  Microsoft.WindowsAzure.Storage.DataMovement (in Microsoft.WindowsAzure.Storage.DataMovement.dll)

public static Task DownloadAsync(
	CloudFile sourceFile,
	Stream destStream,
	DownloadOptions options,
	SingleTransferContext context
)

Parameters

sourceFile
Type: Microsoft.WindowsAzure.Storage.File.CloudFile

The CloudFile that is the source Azure file.

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.

Return Value

Type: System.Threading.Tasks.Task

A Task object that represents the asynchronous operation.

Return to top
Show: