# ContainerPortReference Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [ContainerPortReference](/reference/api/csharp/aspire.hosting/containerportreference.md)
- Kind: `Properties`
- Members: `3`

Represents a TCP/UDP port that a container can expose.

## References

- Name: `References`
- Modifiers: `get`
- Returns: `IEnumerable<object>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ContainerPortReference.cs#L24)

The referenced objects of the value.

```csharp
public IEnumerable<object> References { get; }
```

## ATS metadata

### Ignored by ATS

- Reason: Reference enumeration is not needed in the ATS surface for container port provenance.

## Resource

- Name: `Resource`
- Modifiers: `get`
- Returns: [IResource](/reference/api/csharp/aspire.hosting/iresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ContainerPortReference.cs#L17)

Gets the resource that this container port is associated with.

```csharp
public IResource Resource { get; }
```

## ValueExpression

- Name: `ValueExpression`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ContainerPortReference.cs#L20)

Gets the expression that represents a value in manifest.

```csharp
public string ValueExpression { get; }
```
