BlobContainerClientExtensions.StartUploadDirectoryAsync Method

Definition

Overloads

StartUploadDirectoryAsync(BlobContainerClient, String, BlobContainerClientTransferOptions)

Uploads the entire contents of local directory to the blob container.

StartUploadDirectoryAsync(BlobContainerClient, String, String)

Uploads the entire contents of local directory to the blob container.

StartUploadDirectoryAsync(BlobContainerClient, String, BlobContainerClientTransferOptions)

Source:
BlobContainerClientExtensions.cs

Uploads the entire contents of local directory to the blob container.

public static System.Threading.Tasks.Task<Azure.Storage.DataMovement.DataTransfer> StartUploadDirectoryAsync (this Azure.Storage.Blobs.BlobContainerClient client, string localDirectoryPath, Azure.Storage.DataMovement.Blobs.BlobContainerClientTransferOptions options);
static member StartUploadDirectoryAsync : Azure.Storage.Blobs.BlobContainerClient * string * Azure.Storage.DataMovement.Blobs.BlobContainerClientTransferOptions -> System.Threading.Tasks.Task<Azure.Storage.DataMovement.DataTransfer>
<Extension()>
Public Function StartUploadDirectoryAsync (client As BlobContainerClient, localDirectoryPath As String, options As BlobContainerClientTransferOptions) As Task(Of DataTransfer)

Parameters

client
BlobContainerClient

The BlobContainerClient used for service operations.

localDirectoryPath
String

The full path to the local directory to be uploaded.

options
BlobContainerClientTransferOptions

Options which control the directory upload.

Returns

A DataTransfer instance which can be used track progress and wait for completion with WaitForCompletionAsync(CancellationToken).

Applies to

StartUploadDirectoryAsync(BlobContainerClient, String, String)

Source:
BlobContainerClientExtensions.cs

Uploads the entire contents of local directory to the blob container.

public static System.Threading.Tasks.Task<Azure.Storage.DataMovement.DataTransfer> StartUploadDirectoryAsync (this Azure.Storage.Blobs.BlobContainerClient client, string localDirectoryPath, string blobDirectoryPrefix = default);
static member StartUploadDirectoryAsync : Azure.Storage.Blobs.BlobContainerClient * string * string -> System.Threading.Tasks.Task<Azure.Storage.DataMovement.DataTransfer>
<Extension()>
Public Function StartUploadDirectoryAsync (client As BlobContainerClient, localDirectoryPath As String, Optional blobDirectoryPrefix As String = Nothing) As Task(Of DataTransfer)

Parameters

client
BlobContainerClient

The BlobContainerClient used for service operations.

localDirectoryPath
String

The full path to the local directory to be uploaded.

blobDirectoryPrefix
String

Optionally specifies the directory prefix to be prepended to all uploaded files.

Returns

A DataTransfer instance which can be used track progress and wait for completion with WaitForCompletionAsync(CancellationToken).

Applies to