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

ContainerRegistryClient.DeleteRepositoryAsync 方法

定义

删除由 repository 标识的存储库以及所有相关项目。

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

参数

repositoryName
String

存储库名称 (包括命名空间) 。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

repositoryName 为 null 时引发。

为空时 repositoryName 引发。

容器注册表服务返回故障时引发。

适用于