你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

BlobContainerClientExtensions.StartUploadDirectoryAsync 方法

定义

重载

StartUploadDirectoryAsync(BlobContainerClient, String, BlobContainerClientTransferOptions)

将本地目录的全部内容上传到 Blob 容器。

StartUploadDirectoryAsync(BlobContainerClient, String, String)

将本地目录的全部内容上传到 Blob 容器。

StartUploadDirectoryAsync(BlobContainerClient, String, BlobContainerClientTransferOptions)

将本地目录的全部内容上传到 Blob 容器。

public static System.Threading.Tasks.Task<Azure.Storage.DataMovement.DataTransfer> StartUploadDirectoryAsync (this Azure.Storage.Blobs.BlobContainerClient client, string localDirectoryPath, Azure.Storage.Blobs.Models.BlobContainerClientTransferOptions options);
static member StartUploadDirectoryAsync : Azure.Storage.Blobs.BlobContainerClient * string * Azure.Storage.Blobs.Models.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)

参数

client
BlobContainerClient

BlobContainerClient用于服务操作的 。

localDirectoryPath
String

要上传的本地目录的完整路径。

options
BlobContainerClientTransferOptions

控制目录上传的选项。

返回

一个 DataTransfer 实例,可以使用 它跟踪进度并等待完成 AwaitCompletion(CancellationToken)

适用于

StartUploadDirectoryAsync(BlobContainerClient, String, String)

将本地目录的全部内容上传到 Blob 容器。

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)

参数

client
BlobContainerClient

BlobContainerClient用于服务操作的 。

localDirectoryPath
String

要上传的本地目录的完整路径。

blobDirectoryPrefix
String

(可选)指定要在上传的所有文件前面添加的目录前缀。

返回

一个 DataTransfer 实例,可以使用 它跟踪进度并等待完成 AwaitCompletion(CancellationToken)

适用于