# 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/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/RegistryTargetAnnotation.cs#L22)

Gets the container registry resource.

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