Udostępnij za pośrednictwem


ContainerRegistryCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}
  • Operation Id: Registries_Get
  • Default Api Version: 2022-12-01
  • Resource: ContainerRegistryResource
public virtual Azure.NullableResponse<Azure.ResourceManager.ContainerRegistry.ContainerRegistryResource> GetIfExists (string registryName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ContainerRegistry.ContainerRegistryResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ContainerRegistry.ContainerRegistryResource>
Public Overridable Function GetIfExists (registryName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ContainerRegistryResource)

Parameters

registryName
String

The name of the container registry.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

registryName is an empty string, and was expected to be non-empty.

registryName is null.

Applies to