# AzureSubnetServiceDelegationAnnotation Properties

- Package: [Aspire.Hosting.Azure.Network](/reference/api/csharp/aspire.hosting.azure.network.md)
- Type: [AzureSubnetServiceDelegationAnnotation](/reference/api/csharp/aspire.hosting.azure.network/azuresubnetservicedelegationannotation.md)
- Kind: `Properties`
- Members: `2`

Annotation to specify a service delegation for an Azure Subnet.

## Name

- Name: `Name`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Network/AzureSubnetServiceDelegationAnnotation.cs)

Gets or sets the name associated with the service delegation.

```csharp
public string Name { get; set; }
```

## ServiceName

- Name: `ServiceName`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Network/AzureSubnetServiceDelegationAnnotation.cs)

Gets or sets the name of the service associated with the service delegation.

```csharp
public string ServiceName { get; set; }
```
