# ConnectionPropertyAnnotation Properties

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

Annotation that creates a custom connection property value injected into environment variables when a resource is referenced using `WithReference()`.

## Name

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

Gets the name associated with the current instance.

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

## Value

- Name: `Value`
- Modifiers: `get`
- Returns: [ReferenceExpression](/reference/api/csharp/aspire.hosting/referenceexpression.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ConnectionPropertyAnnotation.cs#L32)

Gets the reference expression associated with this instance.

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