Dela via


TransferManager.UploadDirectoryAsync Method

Definition

Overloads

UploadDirectoryAsync(String, CloudFileDirectory, UploadDirectoryOptions, DirectoryTransferContext)

Upload a directory to Azure File Storage.

UploadDirectoryAsync(String, CloudBlobDirectory, UploadDirectoryOptions, DirectoryTransferContext)

Upload a directory to Azure Blob Storage.

UploadDirectoryAsync(String, CloudBlobDirectory, UploadDirectoryOptions, DirectoryTransferContext, CancellationToken)

Upload a directory to Azure Blob Storage.

UploadDirectoryAsync(String, CloudBlobDirectory)

Upload a directory to Azure Blob Storage.

UploadDirectoryAsync(String, CloudFileDirectory)

Upload a directory to Azure File Storage.

UploadDirectoryAsync(String, CloudFileDirectory, UploadDirectoryOptions, DirectoryTransferContext, CancellationToken)

Upload a directory to Azure File Storage.

UploadDirectoryAsync(String, CloudFileDirectory, UploadDirectoryOptions, DirectoryTransferContext)

Upload a directory to Azure File Storage.

public static System.Threading.Tasks.Task<Microsoft.Azure.Storage.DataMovement.TransferStatus> UploadDirectoryAsync (string sourcePath, Microsoft.Azure.Storage.File.CloudFileDirectory destFileDir, Microsoft.Azure.Storage.DataMovement.UploadDirectoryOptions options, Microsoft.Azure.Storage.DataMovement.DirectoryTransferContext context);
static member UploadDirectoryAsync : string * Microsoft.Azure.Storage.File.CloudFileDirectory * Microsoft.Azure.Storage.DataMovement.UploadDirectoryOptions * Microsoft.Azure.Storage.DataMovement.DirectoryTransferContext -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.DataMovement.TransferStatus>
Public Shared Function UploadDirectoryAsync (sourcePath As String, destFileDir As CloudFileDirectory, options As UploadDirectoryOptions, context As DirectoryTransferContext) As Task(Of TransferStatus)

Parameters

sourcePath
String

Path to the source directory

destFileDir
CloudFileDirectory

The CloudFileDirectory that is the destination Azure file directory.

options
UploadDirectoryOptions

An UploadDirectoryOptions object that specifies additional options for the operation.

context
DirectoryTransferContext

A DirectoryTransferContext object that represents the context for the current operation.

Returns

A Task<TResult> object of type TransferStatus that represents the asynchronous operation.

Applies to

UploadDirectoryAsync(String, CloudBlobDirectory, UploadDirectoryOptions, DirectoryTransferContext)

Upload a directory to Azure Blob Storage.

public static System.Threading.Tasks.Task<Microsoft.Azure.Storage.DataMovement.TransferStatus> UploadDirectoryAsync (string sourcePath, Microsoft.Azure.Storage.Blob.CloudBlobDirectory destBlobDir, Microsoft.Azure.Storage.DataMovement.UploadDirectoryOptions options, Microsoft.Azure.Storage.DataMovement.DirectoryTransferContext context);
static member UploadDirectoryAsync : string * Microsoft.Azure.Storage.Blob.CloudBlobDirectory * Microsoft.Azure.Storage.DataMovement.UploadDirectoryOptions * Microsoft.Azure.Storage.DataMovement.DirectoryTransferContext -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.DataMovement.TransferStatus>
Public Shared Function UploadDirectoryAsync (sourcePath As String, destBlobDir As CloudBlobDirectory, options As UploadDirectoryOptions, context As DirectoryTransferContext) As Task(Of TransferStatus)

Parameters

sourcePath
String

Path to the source directory

destBlobDir
CloudBlobDirectory

The CloudBlobDirectory that is the destination Azure blob directory.

options
UploadDirectoryOptions

An UploadDirectoryOptions object that specifies additional options for the operation.

context
DirectoryTransferContext

A DirectoryTransferContext object that represents the context for the current operation.

Returns

A Task<TResult> object of type TransferStatus that represents the asynchronous operation.

Applies to

UploadDirectoryAsync(String, CloudBlobDirectory, UploadDirectoryOptions, DirectoryTransferContext, CancellationToken)

Upload a directory to Azure Blob Storage.

public static System.Threading.Tasks.Task<Microsoft.Azure.Storage.DataMovement.TransferStatus> UploadDirectoryAsync (string sourcePath, Microsoft.Azure.Storage.Blob.CloudBlobDirectory destBlobDir, Microsoft.Azure.Storage.DataMovement.UploadDirectoryOptions options, Microsoft.Azure.Storage.DataMovement.DirectoryTransferContext context, System.Threading.CancellationToken cancellationToken);
static member UploadDirectoryAsync : string * Microsoft.Azure.Storage.Blob.CloudBlobDirectory * Microsoft.Azure.Storage.DataMovement.UploadDirectoryOptions * Microsoft.Azure.Storage.DataMovement.DirectoryTransferContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.DataMovement.TransferStatus>
Public Shared Function UploadDirectoryAsync (sourcePath As String, destBlobDir As CloudBlobDirectory, options As UploadDirectoryOptions, context As DirectoryTransferContext, cancellationToken As CancellationToken) As Task(Of TransferStatus)

Parameters

sourcePath
String

Path to the source directory

destBlobDir
CloudBlobDirectory

The CloudBlobDirectory that is the destination Azure blob directory.

options
UploadDirectoryOptions

An UploadDirectoryOptions object that specifies additional options for the operation.

context
DirectoryTransferContext

A DirectoryTransferContext object that represents the context for the current operation.

cancellationToken
CancellationToken

A CancellationToken object to observe while waiting for a task to complete.

Returns

A Task<TResult> object of type TransferStatus that represents the asynchronous operation.

Applies to

UploadDirectoryAsync(String, CloudBlobDirectory)

Upload a directory to Azure Blob Storage.

public static System.Threading.Tasks.Task<Microsoft.Azure.Storage.DataMovement.TransferStatus> UploadDirectoryAsync (string sourcePath, Microsoft.Azure.Storage.Blob.CloudBlobDirectory destBlobDir);
static member UploadDirectoryAsync : string * Microsoft.Azure.Storage.Blob.CloudBlobDirectory -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.DataMovement.TransferStatus>
Public Shared Function UploadDirectoryAsync (sourcePath As String, destBlobDir As CloudBlobDirectory) As Task(Of TransferStatus)

Parameters

sourcePath
String

Path to the source directory

destBlobDir
CloudBlobDirectory

The CloudBlobDirectory that is the destination Azure blob directory.

Returns

A Task<TResult> object of type TransferStatus that represents the asynchronous operation.

Applies to

UploadDirectoryAsync(String, CloudFileDirectory)

Upload a directory to Azure File Storage.

public static System.Threading.Tasks.Task<Microsoft.Azure.Storage.DataMovement.TransferStatus> UploadDirectoryAsync (string sourcePath, Microsoft.Azure.Storage.File.CloudFileDirectory destFileDir);
static member UploadDirectoryAsync : string * Microsoft.Azure.Storage.File.CloudFileDirectory -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.DataMovement.TransferStatus>
Public Shared Function UploadDirectoryAsync (sourcePath As String, destFileDir As CloudFileDirectory) As Task(Of TransferStatus)

Parameters

sourcePath
String

Path to the source directory

destFileDir
CloudFileDirectory

The CloudFileDirectory that is the destination Azure file directory.

Returns

A Task<TResult> object of type TransferStatus that represents the asynchronous operation.

Applies to

UploadDirectoryAsync(String, CloudFileDirectory, UploadDirectoryOptions, DirectoryTransferContext, CancellationToken)

Upload a directory to Azure File Storage.

public static System.Threading.Tasks.Task<Microsoft.Azure.Storage.DataMovement.TransferStatus> UploadDirectoryAsync (string sourcePath, Microsoft.Azure.Storage.File.CloudFileDirectory destFileDir, Microsoft.Azure.Storage.DataMovement.UploadDirectoryOptions options, Microsoft.Azure.Storage.DataMovement.DirectoryTransferContext context, System.Threading.CancellationToken cancellationToken);
static member UploadDirectoryAsync : string * Microsoft.Azure.Storage.File.CloudFileDirectory * Microsoft.Azure.Storage.DataMovement.UploadDirectoryOptions * Microsoft.Azure.Storage.DataMovement.DirectoryTransferContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.DataMovement.TransferStatus>
Public Shared Function UploadDirectoryAsync (sourcePath As String, destFileDir As CloudFileDirectory, options As UploadDirectoryOptions, context As DirectoryTransferContext, cancellationToken As CancellationToken) As Task(Of TransferStatus)

Parameters

sourcePath
String

Path to the source directory

destFileDir
CloudFileDirectory

The CloudFileDirectory that is the destination Azure file directory.

options
UploadDirectoryOptions

An UploadDirectoryOptions object that specifies additional options for the operation.

context
DirectoryTransferContext

A DirectoryTransferContext object that represents the context for the current operation.

cancellationToken
CancellationToken

A CancellationToken object to observe while waiting for a task to complete.

Returns

A Task<TResult> object of type TransferStatus that represents the asynchronous operation.

Applies to