TransferManagerCopyDirectoryAsync Method (CloudFileDirectory, CloudBlobDirectory, CopyMethod, CopyDirectoryOptions, DirectoryTransferContext) |
Copy an Azure file directory to an 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(
CloudFileDirectory sourceFileDir,
CloudBlobDirectory destBlobDir,
CopyMethod copyMethod,
CopyDirectoryOptions options,
DirectoryTransferContext context
)
Public Shared Function CopyDirectoryAsync (
sourceFileDir As CloudFileDirectory,
destBlobDir As CloudBlobDirectory,
copyMethod As CopyMethod,
options As CopyDirectoryOptions,
context As DirectoryTransferContext
) As Task(Of TransferStatus)
public:
static Task<TransferStatus^>^ CopyDirectoryAsync(
CloudFileDirectory^ sourceFileDir,
CloudBlobDirectory^ destBlobDir,
CopyMethod copyMethod,
CopyDirectoryOptions^ options,
DirectoryTransferContext^ context
)
static member CopyDirectoryAsync :
sourceFileDir : CloudFileDirectory *
destBlobDir : CloudBlobDirectory *
copyMethod : CopyMethod *
options : CopyDirectoryOptions *
context : DirectoryTransferContext -> Task<TransferStatus>
Parameters
- sourceFileDir
- Type: CloudFileDirectory
The CloudFileDirectory that is the source Azure file 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.
Return Value
Type:
TaskTransferStatusA
TaskTResult object of type
TransferStatus that represents the asynchronous operation.
See Also