共用方式為


ContainerRegistryClient.DeleteRepositoryAsync Method

Definition

Delete the repository identified by repository and all associated artifacts.

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)

Parameters

repositoryName
String

Repository name (including the namespace).

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

Thrown when repositoryName is null.

Thrown when repositoryName is empty.

Thrown when a failure is returned by the Container Registry service.

Applies to