TransferManager.UploadDirectoryAsync Method (String, CloudFileDirectory, UploadDirectoryOptions, DirectoryTransferContext)
Updated: January 5, 2017
Upload a directory to Azure File Storage.
Assembly: Microsoft.WindowsAzure.Storage.DataMovement (in Microsoft.WindowsAzure.Storage.DataMovement.dll)
public static Task<TransferStatus> UploadDirectoryAsync( string sourcePath, CloudFileDirectory destFileDir, UploadDirectoryOptions options, DirectoryTransferContext context )
Parameters
- sourcePath
-
Type:
System.String
Path to the source directory
- destFileDir
-
Type:
Microsoft.WindowsAzure.Storage.File.CloudFileDirectory
The CloudFileDirectory that is the destination Azure file directory.
- options
-
Type:
Microsoft.WindowsAzure.Storage.DataMovement.UploadDirectoryOptions
An UploadDirectoryOptions 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.
Return Value
Type: System.Threading.Tasks.Task<TransferStatus>A Task<TResult> object of type TransferStatus that represents the asynchronous operation.
Show: