TransferManager.DownloadDirectoryAsync Method (CloudFileDirectory, String, DownloadDirectoryOptions, DirectoryTransferContext, CancellationToken)
Updated: January 5, 2017
Download an Azure file directory from Azure File Storage.
Assembly: Microsoft.WindowsAzure.Storage.DataMovement (in Microsoft.WindowsAzure.Storage.DataMovement.dll)
public static Task<TransferStatus> DownloadDirectoryAsync( CloudFileDirectory sourceFileDir, string destPath, DownloadDirectoryOptions options, DirectoryTransferContext context, CancellationToken cancellationToken )
Parameters
- sourceFileDir
-
Type:
Microsoft.WindowsAzure.Storage.File.CloudFileDirectory
The CloudFileDirectory that is the source Azure file directory.
- destPath
-
Type:
System.String
Path to the destination directory
- options
-
Type:
Microsoft.WindowsAzure.Storage.DataMovement.DownloadDirectoryOptions
A DownloadOptions object that specifies additional options for the operation.
- context
-
Type:
Microsoft.WindowsAzure.Storage.DataMovement.DirectoryTransferContext
A DirectoryTransferContext 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.Task<TransferStatus>A Task<TResult> object of type TransferStatus that represents the asynchronous operation.
Show: