# EndpointReference.Property

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Defined on: [EndpointReference](/reference/api/go/aspire.hosting/endpointreference.md)
- Version: `17.0.0`
- Kind: `method`

Gets the specified property expression of the endpoint.

## Definition

```go
type EndpointReference interface {
    // ... omitted for brevity
    Property(property EndpointProperty) EndpointReferenceExpression
}
```

## Signature

```go
Property(property EndpointProperty) EndpointReferenceExpression
```

## Parameters

- `property` ([`EndpointProperty`](/reference/api/go/aspire.hosting/endpointproperty.md)) -- The `EndpointProperty` enum value to use in the reference.

## Returns

[`EndpointReferenceExpression`](/reference/api/go/aspire.hosting/endpointreferenceexpression.md) -- An `EndpointReferenceExpression` representing the specified `EndpointProperty`.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [EndpointReference](/reference/api/go/aspire.hosting/endpointreference.md) -- `handle`
