# EndpointReferenceExpression Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [EndpointReferenceExpression](/reference/api/csharp/aspire.hosting/endpointreferenceexpression.md)
- Kind: `Properties`
- Members: `3`

Represents a property expression for an endpoint reference.

<a id="endpoint"></a>

## Endpoint

- Name: `Endpoint`
- Modifiers: `get`
- Returns: [EndpointReference](/reference/api/csharp/aspire.hosting/endpointreference.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting/ApplicationModel/EndpointReference.cs#L326)

Gets the [EndpointReference](/reference/api/csharp/aspire.hosting/endpointreference.md).

```csharp
public EndpointReference Endpoint { get; }
```

<a id="property"></a>

## Property

- Name: `Property`
- Modifiers: `get`
- Returns: [EndpointProperty](/reference/api/csharp/aspire.hosting/endpointproperty.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting/ApplicationModel/EndpointReference.cs#L331)

Gets the [EndpointProperty](/reference/api/csharp/aspire.hosting/endpointproperty.md) for the property expression.

```csharp
public EndpointProperty Property { get; }
```

<a id="valueexpression"></a>

## ValueExpression

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

Gets the expression of the property of the endpoint.

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