# ReferenceExpressionBuilderInterpolatedStringHandler Constructors

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [ReferenceExpressionBuilderInterpolatedStringHandler](/reference/api/csharp/aspire.hosting/referenceexpressionbuilderinterpolatedstringhandler.md)
- Kind: `Constructors`
- Members: `1`

Represents a handler for interpolated strings that contain expressions. Those expressions will either be literal strings or instances of types that implement both [IValueProvider](/reference/api/csharp/aspire.hosting/ivalueprovider.md) and [IManifestExpressionProvider](/reference/api/csharp/aspire.hosting/imanifestexpressionprovider.md).

## ReferenceExpressionBuilderInterpolatedStringHandler(int, int, ReferenceExpressionBuilder)

- Name: `Constructor(int, int, ReferenceExpressionBuilder)`

Represents a handler for interpolated strings that contain expressions. Those expressions will either be literal strings or instances of types that implement both [IValueProvider](/reference/api/csharp/aspire.hosting/ivalueprovider.md) and [IManifestExpressionProvider](/reference/api/csharp/aspire.hosting/imanifestexpressionprovider.md).

```csharp
public struct ReferenceExpressionBuilderInterpolatedStringHandler
{
    public ReferenceExpressionBuilderInterpolatedStringHandler(
        int literalLength,
        int formattedCount,
        ReferenceExpressionBuilder builder)
    {
        // ...
    }
}
```

## Parameters

- `literalLength` (`int`)
  The length of the literal part of the interpolated string.
- `formattedCount` (`int`)
  The number of formatted parts in the interpolated string.
- `builder` ([ReferenceExpressionBuilder](/reference/api/csharp/aspire.hosting/referenceexpressionbuilder.md))
  The builder that will be used to create the [ReferenceExpression](/reference/api/csharp/aspire.hosting/referenceexpression.md).
