ContainerRegistryResource Constructor
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.
Initializes a new instance of the ContainerRegistryResource class.
public ContainerRegistryResource(string name, Aspire.Hosting.ApplicationModel.ReferenceExpression endpoint, Aspire.Hosting.ApplicationModel.ReferenceExpression? repository = default);
new Aspire.Hosting.ApplicationModel.ContainerRegistryResource : string * Aspire.Hosting.ApplicationModel.ReferenceExpression * Aspire.Hosting.ApplicationModel.ReferenceExpression -> Aspire.Hosting.ApplicationModel.ContainerRegistryResource
Public Sub New (name As String, endpoint As ReferenceExpression, Optional repository As ReferenceExpression = Nothing)
Parameters
- name
- String
The name of the resource.
- endpoint
- ReferenceExpression
The endpoint URL or hostname of the container registry.
- repository
- ReferenceExpression
The optional repository path within the container registry.
Exceptions
Thrown when endpoint is null.