# 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/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/EndpointReference.cs#L337)

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/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/EndpointReference.cs#L342)

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/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/EndpointReference.cs#L348)

Gets the expression of the property of the endpoint.

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