TransferManager.UploadDirectoryAsync Method (String, CloudBlobDirectory, UploadDirectoryOptions, DirectoryTransferContext, CancellationToken)
Updated: January 5, 2017
Upload a directory to Azure Blob Storage.
Assembly: Microsoft.WindowsAzure.Storage.DataMovement (in Microsoft.WindowsAzure.Storage.DataMovement.dll)
public static Task<TransferStatus> UploadDirectoryAsync( string sourcePath, CloudBlobDirectory destBlobDir, UploadDirectoryOptions options, DirectoryTransferContext context, CancellationToken cancellationToken )
Parameters
- sourcePath
-
Type:
System.String
Path to the source directory
- destBlobDir
-
Type:
Microsoft.WindowsAzure.Storage.Blob.CloudBlobDirectory
The CloudBlobDirectory that is the destination Azure blob 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.
- 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: