ContainerRegistryClient Constructors

Definition

Overloads

ContainerRegistryClient()

Initializes a new instance of RepositoryClient for mocking.

ContainerRegistryClient(Uri)

Initializes a new instance of the ContainerRegistryClient for managing container images and artifacts, using anonymous access to the registry. Only operations that support anonymous access are enabled. Other service methods will throw RequestFailedException if called.

ContainerRegistryClient(Uri, ContainerRegistryClientOptions)

Initializes a new instance of the ContainerRegistryClient for managing container images and artifacts, using anonymous access to the registry. Only operations that support anonymous access are enabled. Other service methods will throw RequestFailedException if called.

ContainerRegistryClient(Uri, TokenCredential)

Initializes a new instance of the ContainerRegistryClient for managing container images and artifacts.

ContainerRegistryClient(Uri, TokenCredential, ContainerRegistryClientOptions)

Initializes a new instance of the ContainerRegistryClient for managing container images and artifacts.

ContainerRegistryClient()

Initializes a new instance of RepositoryClient for mocking.

protected ContainerRegistryClient ();
Protected Sub New ()

Applies to

ContainerRegistryClient(Uri)

Initializes a new instance of the ContainerRegistryClient for managing container images and artifacts, using anonymous access to the registry. Only operations that support anonymous access are enabled. Other service methods will throw RequestFailedException if called.

public ContainerRegistryClient (Uri endpoint);
new Azure.Containers.ContainerRegistry.ContainerRegistryClient : Uri -> Azure.Containers.ContainerRegistry.ContainerRegistryClient
Public Sub New (endpoint As Uri)

Parameters

endpoint
Uri

The URI endpoint of the container registry. This is likely to be similar to "https://{registry-name}.azurecr.io".

Exceptions

Thrown when the endpoint is null.

Applies to

ContainerRegistryClient(Uri, ContainerRegistryClientOptions)

Initializes a new instance of the ContainerRegistryClient for managing container images and artifacts, using anonymous access to the registry. Only operations that support anonymous access are enabled. Other service methods will throw RequestFailedException if called.

public ContainerRegistryClient (Uri endpoint, Azure.Containers.ContainerRegistry.ContainerRegistryClientOptions options);
new Azure.Containers.ContainerRegistry.ContainerRegistryClient : Uri * Azure.Containers.ContainerRegistry.ContainerRegistryClientOptions -> Azure.Containers.ContainerRegistry.ContainerRegistryClient
Public Sub New (endpoint As Uri, options As ContainerRegistryClientOptions)

Parameters

endpoint
Uri

The URI endpoint of the container registry. This is likely to be similar to "https://{registry-name}.azurecr.io".

options
ContainerRegistryClientOptions

Client configuration options for connecting to Azure Container Registry.

Exceptions

Thrown when the endpoint is null.

Applies to

ContainerRegistryClient(Uri, TokenCredential)

Initializes a new instance of the ContainerRegistryClient for managing container images and artifacts.

public ContainerRegistryClient (Uri endpoint, Azure.Core.TokenCredential credential);
new Azure.Containers.ContainerRegistry.ContainerRegistryClient : Uri * Azure.Core.TokenCredential -> Azure.Containers.ContainerRegistry.ContainerRegistryClient
Public Sub New (endpoint As Uri, credential As TokenCredential)

Parameters

endpoint
Uri

The URI endpoint of the container registry. This is likely to be similar to "https://{registry-name}.azurecr.io".

credential
TokenCredential

The API key credential used to authenticate requests against the container registry.

Exceptions

Thrown when the endpoint or credential is null.

Applies to

ContainerRegistryClient(Uri, TokenCredential, ContainerRegistryClientOptions)

Initializes a new instance of the ContainerRegistryClient for managing container images and artifacts.

public ContainerRegistryClient (Uri endpoint, Azure.Core.TokenCredential credential, Azure.Containers.ContainerRegistry.ContainerRegistryClientOptions options);
new Azure.Containers.ContainerRegistry.ContainerRegistryClient : Uri * Azure.Core.TokenCredential * Azure.Containers.ContainerRegistry.ContainerRegistryClientOptions -> Azure.Containers.ContainerRegistry.ContainerRegistryClient
Public Sub New (endpoint As Uri, credential As TokenCredential, options As ContainerRegistryClientOptions)

Parameters

endpoint
Uri

The URI endpoint of the container registry. This is likely to be similar to "https://{registry-name}.azurecr.io".

credential
TokenCredential

The API key credential used to authenticate requests against the container registry.

options
ContainerRegistryClientOptions

Client configuration options for connecting to Azure Container Registry.

Exceptions

Thrown when the endpoint or credential is null.

Applies to