# 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/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/ContainerNameAnnotation.cs)

Gets or sets the name for the container.

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