# AzureSubnetServiceDelegationAnnotation

- Kind: `class`
- Package: [Aspire.Hosting.Azure.Network](/reference/api/csharp/aspire.hosting.azure.network.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Network/AzureSubnetServiceDelegationAnnotation.cs)
- Implements: `IResourceAnnotation`

Annotation to specify a service delegation for an Azure Subnet.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public sealed class AzureSubnetServiceDelegationAnnotation
    : Aspire.Hosting.ApplicationModel.IResourceAnnotation
{
    // ...
}
```

## Constructors

- [AzureSubnetServiceDelegationAnnotation(string, string)](/reference/api/csharp/aspire.hosting.azure.network/azuresubnetservicedelegationannotation/constructors.md#constructor-string-string) -- Annotation to specify a service delegation for an Azure Subnet.

## Properties

- [Name](/reference/api/csharp/aspire.hosting.azure.network/azuresubnetservicedelegationannotation/properties.md#name) : `string` `get; set` -- Gets or sets the name associated with the service delegation.
- [ServiceName](/reference/api/csharp/aspire.hosting.azure.network/azuresubnetservicedelegationannotation/properties.md#servicename) : `string` `get; set` -- Gets or sets the name of the service associated with the service delegation.
