TransferManager.DownloadAsync Method (CloudFile, String, DownloadOptions, SingleTransferContext, CancellationToken)
Updated: January 5, 2017
Download an Azure file from Azure File Storage.
Assembly: Microsoft.WindowsAzure.Storage.DataMovement (in Microsoft.WindowsAzure.Storage.DataMovement.dll)
public static Task DownloadAsync( CloudFile sourceFile, string destPath, DownloadOptions options, SingleTransferContext context, CancellationToken cancellationToken )
Parameters
- sourceFile
-
Type:
Microsoft.WindowsAzure.Storage.File.CloudFile
The CloudFile that is the source Azure file.
- destPath
-
Type:
System.String
Path to the destination file.
- 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: