# EndpointReferenceExpression

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Represents a property expression for an endpoint reference.

## Definition

```go
type EndpointReferenceExpression interface {
    ExpressionValue
}
```

## Embeds

- [`ExpressionValue`](/reference/api/go/aspire.hosting/expressionvalue.md)

## Properties

- `Endpoint`: [`EndpointReference`](/reference/api/go/aspire.hosting/endpointreference.md) `get` -- Gets the `EndpointReference`.
- `Property`: [`EndpointProperty`](/reference/api/go/aspire.hosting/endpointproperty.md) `get` -- Gets the `EndpointProperty` for the property expression.
- `ValueExpression`: `string` `get` -- Gets the expression of the property of the endpoint.
