TransferManager.UploadDirectoryAsync Method (String, CloudFileDirectory, UploadDirectoryOptions, TransferContext, CancellationToken)
Upload a directory to Azure File Storage.
Namespace: Microsoft.WindowsAzure.Storage.DataMovement
Assembly: Microsoft.WindowsAzure.Storage.DataMovement (in Microsoft.WindowsAzure.Storage.DataMovement.dll)
Syntax
public static Task UploadDirectoryAsync(
string sourcePath,
CloudFileDirectory destFileDir,
UploadDirectoryOptions options,
TransferContext context,
CancellationToken cancellationToken
)
Parameters
sourcePath
Type: System.StringPath to the source directory
destFileDir
Type: Microsoft.WindowsAzure.Storage.File.CloudFileDirectoryThe CloudFileDirectory that is the destination Azure file directory.
options
Type: Microsoft.WindowsAzure.Storage.DataMovement.UploadDirectoryOptionsAn UploadDirectoryOptions object that specifies additional options for the operation.
context
Type: Microsoft.WindowsAzure.Storage.DataMovement.TransferContextA TransferContext object that represents the context for the current operation.
cancellationToken
Type: System.Threading.CancellationTokenA CancellationToken object to observe while waiting for a task to complete.
Return Value
Type: System.Threading.Tasks.Task
A Task object that represents the asynchronous operation.
See Also
UploadDirectoryAsync Overload
TransferManager Class
Microsoft.WindowsAzure.Storage.DataMovement Namespace
Return to top