# RegistryTargetAnnotation Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [RegistryTargetAnnotation](/reference/api/csharp/aspire.hosting/registrytargetannotation.md)
- Kind: `Properties`
- Members: `1`

Annotation that indicates a resource should use a specific container registry as its default target.

## Registry

- Name: `Registry`
- Modifiers: `get`
- Returns: [IContainerRegistry](/reference/api/csharp/aspire.hosting/icontainerregistry.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/RegistryTargetAnnotation.cs#L22)

Gets the container registry resource.

```csharp
public IContainerRegistry Registry { get; }
```
