Skip to content
Docs Try Aspire

ContainerNetworkAliasAnnotation Properties

Class Properties 2 members
Represents an annotation for a custom network alias for a container resource.
Gets the network alias for the container.
public string Alias { get; }
Gets or sets the network identifier for the network to which the alias applies.
public NetworkIdentifier Network { get; set; }
If not specified, defaults to the default Aspire container network.