BlobContainerClientExtensions.StartUploadDirectoryAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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 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)
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
Azure SDK for .NET
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin