RegistryArtifact.GetTagPropertiesAsync(String, CancellationToken) Method

Definition

Get tag properties by tag.

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

Parameters

tag
System.String

Tag name.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<Response<ArtifactTagProperties>>

Exceptions

System.ArgumentNullException

Thrown when tag is null.

System.ArgumentException

Thrown when tag is empty.

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

Applies to