TransferManager.CopyDirectoryAsync Method (CloudBlobDirectory, CloudBlobDirectory, Boolean, CopyDirectoryOptions, TransferContext)
Copy an Azure blob directory to another Azure blob directory.
Namespace: Microsoft.WindowsAzure.Storage.DataMovement
Assembly: Microsoft.WindowsAzure.Storage.DataMovement (in Microsoft.WindowsAzure.Storage.DataMovement.dll)
Syntax
public static Task CopyDirectoryAsync(
CloudBlobDirectory sourceBlobDir,
CloudBlobDirectory destBlobDir,
bool isServiceCopy,
CopyDirectoryOptions options,
TransferContext context
)
Parameters
sourceBlobDir
Type: Microsoft.WindowsAzure.Storage.Blob.CloudBlobDirectoryThe CloudBlobDirectory that is the source Azure blob directory.
destBlobDir
Type: Microsoft.WindowsAzure.Storage.Blob.CloudBlobDirectoryThe CloudBlobDirectory that is the destination Azure blob directory.
isServiceCopy
Type: System.BooleanA flag indicating whether the copy is service-side asynchronous copy or not. If this flag is set to true, service-side asychronous copy will be used; if this flag is set to false, file is downloaded from source first, then uploaded to destination.
options
Type: Microsoft.WindowsAzure.Storage.DataMovement.CopyDirectoryOptionsA CopyDirectoryOptions 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.
Return Value
Type: System.Threading.Tasks.Task
A Task object that represents the asynchronous operation.
See Also
CopyDirectoryAsync Overload
TransferManager Class
Microsoft.WindowsAzure.Storage.DataMovement Namespace
Return to top