TransferManagerUploadDirectoryAsync Method (String, CloudBlobDirectory, UploadDirectoryOptions, DirectoryTransferContext) |
Upload a directory to Azure Blob Storage.
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> UploadDirectoryAsync(
string sourcePath,
CloudBlobDirectory destBlobDir,
UploadDirectoryOptions options,
DirectoryTransferContext context
)
Public Shared Function UploadDirectoryAsync (
sourcePath As String,
destBlobDir As CloudBlobDirectory,
options As UploadDirectoryOptions,
context As DirectoryTransferContext
) As Task(Of TransferStatus)
public:
static Task<TransferStatus^>^ UploadDirectoryAsync(
String^ sourcePath,
CloudBlobDirectory^ destBlobDir,
UploadDirectoryOptions^ options,
DirectoryTransferContext^ context
)
static member UploadDirectoryAsync :
sourcePath : string *
destBlobDir : CloudBlobDirectory *
options : UploadDirectoryOptions *
context : DirectoryTransferContext -> Task<TransferStatus>
Parameters
- sourcePath
- Type: SystemString
Path to the source directory - destBlobDir
- Type: CloudBlobDirectory
The CloudBlobDirectory that is the destination Azure blob directory. - options
- Type: Microsoft.Azure.Storage.DataMovementUploadDirectoryOptions
An UploadDirectoryOptions 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