# ReferenceExpression

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

Represents an expression that might be made up of multiple resource properties. For example, a connection string might be made up of a host, port, and password from different endpoints.

## Definition

```typescript
interface ReferenceExpression
  extends IExpressionValue,
    IManifestExpressionProvider,
    IValueProvider,
    IValueWithReferences {
  getValueAsync(cancellationToken: cancellationToken): string;
}
```

## Methods

- [getValueAsync](/reference/api/typescript/aspire.hosting/referenceexpression/getvalueasync.md) -- `method` -- Gets the value of the expression. The final string value after evaluating the format string and its parameters.
    ```typescript
  getValueAsync(cancellationToken: cancellationToken): string
  ```
