# 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/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/DelegatedSubnetAnnotation.cs#L19)

Gets the subnet ID reference expression.

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