ContainerRegistryClient Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 from this client. |
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 from this client. |
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()
- Source:
- ContainerRegistryClient.cs
- Source:
- ContainerRegistryClient.cs
Initializes a new instance of RepositoryClient for mocking.
protected ContainerRegistryClient ();
Protected Sub New ()
Applies to
ContainerRegistryClient(Uri)
- Source:
- ContainerRegistryClient.cs
- Source:
- ContainerRegistryClient.cs
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 from this client.
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)
- Source:
- ContainerRegistryClient.cs
- Source:
- ContainerRegistryClient.cs
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 from this client.
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)
- Source:
- ContainerRegistryClient.cs
- Source:
- ContainerRegistryClient.cs
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)
- Source:
- ContainerRegistryClient.cs
- Source:
- ContainerRegistryClient.cs
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.