ContainerPortReference Class  
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.
Represents a TCP/UDP port that a container can expose.
public class ContainerPortReference : Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferencestype ContainerPortReference = class
    interface IManifestExpressionProvider
    interface IValueWithReferences
    interface IValueProviderPublic Class ContainerPortReference
Implements IManifestExpressionProvider, IValueProvider, IValueWithReferences- Inheritance
- 
				ContainerPortReference
- Implements
Constructors
| ContainerPortReference(IResource) | Represents a TCP/UDP port that a container can expose. | 
Properties
| References | The referenced objects of the value. | 
| Resource | Gets the resource that this container port is associated with. | 
| ValueExpression | Gets the expression that represents a value in manifest. | 
Explicit Interface Implementations
| IValueProvider.GetValueAsync(CancellationToken) | 
Extension Methods
| AsProvisioningParameter(IManifestExpressionProvider, AzureResourceInfrastructure, String, Nullable<Boolean>) | Creates a new ProvisioningParameter in  | 
| AsEnvironmentPlaceholder(IManifestExpressionProvider, DockerComposeServiceResource) | Creates a placeholder for an environment variable in the Docker Compose file. |