# PrivateEndpointTargetAnnotation Properties

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

An annotation that indicates a resource is the target of a private endpoint.

## PrivateEndpointResource

- Name: `PrivateEndpointResource`
- Modifiers: `get`
- Returns: [AzureProvisioningResource](/reference/api/csharp/aspire.hosting.azure/azureprovisioningresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/PrivateEndpointTargetAnnotation.cs#L22)

Gets the private endpoint resource associated with the annotated Azure resource.

```csharp
public AzureProvisioningResource PrivateEndpointResource { get; }
```
