Share via


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

BlobServiceClient.UndeleteBlobContainerAsync 方法

定义

还原以前删除的容器。 此 API 仅在为与容器关联的存储帐户启用了容器软删除时才有效。

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Blobs.BlobContainerClient>> UndeleteBlobContainerAsync (string deletedContainerName, string deletedContainerVersion, System.Threading.CancellationToken cancellationToken = default);
abstract member UndeleteBlobContainerAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Blobs.BlobContainerClient>>
override this.UndeleteBlobContainerAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Blobs.BlobContainerClient>>
Public Overridable Function UndeleteBlobContainerAsync (deletedContainerName As String, deletedContainerVersion As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BlobContainerClient))

参数

deletedContainerName
String

以前删除的容器的名称。

deletedContainerVersion
String

以前删除的容器的版本。

cancellationToken
CancellationToken

可选 CancellationToken ,用于传播应取消操作的通知。

返回

指向 Response<T> 未删除的容器的 。

注解

RequestFailedException如果失败,将引发 。

适用于