# DelegatedSubnetAnnotation Properties

- Package: [Aspire.Hosting.Azure](/reference/api/csharp/aspire.hosting.azure.md)
- Type: [DelegatedSubnetAnnotation](/reference/api/csharp/aspire.hosting.azure/delegatedsubnetannotation.md)
- Kind: `Properties`
- Members: `1`

Annotation that stores a reference to a subnet for an Azure resource that implements [IAzureDelegatedSubnetResource](/reference/api/csharp/aspire.hosting.azure/iazuredelegatedsubnetresource.md).

## SubnetId

- Name: `SubnetId`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting.Azure/DelegatedSubnetAnnotation.cs#L19)

Gets the subnet ID reference expression.

```csharp
public ReferenceExpression SubnetId { get; }
```
