# 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.

## Endpoint

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

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

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

## Property

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

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

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

## ValueExpression

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

Gets the expression of the property of the endpoint.

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