TransferManagerCopyDirectoryAsync Method (CloudFileDirectory, CloudFileDirectory, CopyMethod, CopyDirectoryOptions, DirectoryTransferContext) |
Copy an Azure file directory to another Azure file 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,
CloudFileDirectory destFileDir,
CopyMethod copyMethod,
CopyDirectoryOptions options,
DirectoryTransferContext context
)
Public Shared Function CopyDirectoryAsync (
sourceFileDir As CloudFileDirectory,
destFileDir As CloudFileDirectory,
copyMethod As CopyMethod,
options As CopyDirectoryOptions,
context As DirectoryTransferContext
) As Task(Of TransferStatus)
public:
static Task<TransferStatus^>^ CopyDirectoryAsync(
CloudFileDirectory^ sourceFileDir,
CloudFileDirectory^ destFileDir,
CopyMethod copyMethod,
CopyDirectoryOptions^ options,
DirectoryTransferContext^ context
)
static member CopyDirectoryAsync :
sourceFileDir : CloudFileDirectory *
destFileDir : CloudFileDirectory *
copyMethod : CopyMethod *
options : CopyDirectoryOptions *
context : DirectoryTransferContext -> Task<TransferStatus>
Parameters
- sourceFileDir
- Type: CloudFileDirectory
The CloudFileDirectory that is the source Azure file directory. - destFileDir
- Type: CloudFileDirectory
The CloudFileDirectory that is the destination Azure file 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