# ContainerNameAnnotation Properties

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

Represents an annotation for a custom container name.

## Name

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

Gets or sets the name for the container.

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