TransferManagerCopyDirectoryAsync Method (CloudBlobDirectory, CloudBlobDirectory, CopyMethod, CopyDirectoryOptions, DirectoryTransferContext, CancellationToken) |
Copy an Azure blob directory to another Azure blob directory.
Namespace:
Microsoft.Azure.Storage.DataMovement
Assembly:
Microsoft.Azure.Storage.DataMovement (in Microsoft.Azure.Storage.DataMovement.dll) Version: 2.0.1.0 (2.0.1.0)
Syntax public static Task<TransferStatus> CopyDirectoryAsync(
CloudBlobDirectory sourceBlobDir,
CloudBlobDirectory destBlobDir,
CopyMethod copyMethod,
CopyDirectoryOptions options,
DirectoryTransferContext context,
CancellationToken cancellationToken
)
Public Shared Function CopyDirectoryAsync (
sourceBlobDir As CloudBlobDirectory,
destBlobDir As CloudBlobDirectory,
copyMethod As CopyMethod,
options As CopyDirectoryOptions,
context As DirectoryTransferContext,
cancellationToken As CancellationToken
) As Task(Of TransferStatus)
public:
static Task<TransferStatus^>^ CopyDirectoryAsync(
CloudBlobDirectory^ sourceBlobDir,
CloudBlobDirectory^ destBlobDir,
CopyMethod copyMethod,
CopyDirectoryOptions^ options,
DirectoryTransferContext^ context,
CancellationToken cancellationToken
)
static member CopyDirectoryAsync :
sourceBlobDir : CloudBlobDirectory *
destBlobDir : CloudBlobDirectory *
copyMethod : CopyMethod *
options : CopyDirectoryOptions *
context : DirectoryTransferContext *
cancellationToken : CancellationToken -> Task<TransferStatus>
Parameters
- sourceBlobDir
- Type: CloudBlobDirectory
The CloudBlobDirectory that is the source Azure blob directory. - destBlobDir
- Type: CloudBlobDirectory
The CloudBlobDirectory that is the destination Azure blob directory. - copyMethod
- Type: Microsoft.Azure.Storage.DataMovementCopyMethod
A flag indicating how the copying operation is handled in DataMovement Library.
See definition of CopyMethod for more details on how copying operation will be handled. - options
- Type: Microsoft.Azure.Storage.DataMovementCopyDirectoryOptions
A CopyDirectoryOptions object that specifies additional options for the operation. - context
- Type: Microsoft.Azure.Storage.DataMovementDirectoryTransferContext
A DirectoryTransferContext object that represents the context for the current operation. - cancellationToken
- Type: System.ThreadingCancellationToken
A CancellationToken object to observe while waiting for a task to complete.
Return Value
Type:
TaskTransferStatusA
TaskTResult object of type
TransferStatus that represents the asynchronous operation.
See Also