# TraitAnnotation Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [TraitAnnotation](/reference/api/csharp/aspire.hosting/traitannotation.md)
- Kind: `Properties`
- Members: `2`

Immutable, non-sensitive metadata attached to a resource. Multiple annotations with the same name represent multiple values.

<a id="name"></a>

## Name

- Name: `Name`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting/ApplicationModel/TraitAnnotation.cs#L29)

Gets the case-sensitive trait name.

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

<a id="value"></a>

## Value

- Name: `Value`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting/ApplicationModel/TraitAnnotation.cs#L32)

Gets the trait value.

```csharp
public string Value { get; }
```
