# WithHelmStringValue

- Module: [CommunityToolkit.Aspire.Hosting.Kind](/reference/api/go/communitytoolkit.aspire.hosting.kind.md)
- Version: `13.5.1-beta.895`
- Kind: `method`
- Defined on: [`KindHelmChartResource`](/reference/api/go/communitytoolkit.aspire.hosting.kind/kindhelmchartresource.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/2c26a4c9649531d17fce3cbc4c5dea00d61d279c)

Sets a Helm value while preserving it as a string (maps to `helm install --set-string key=value`).

## Remarks

Use this overload when Helm would otherwise coerce the value into a numeric, boolean,
or other non-string type. If the same key was previously configured with
`WithHelmValue`,
the string-preserving value replaces it.

## Definition

```go
func (KindHelmChartResource) WithHelmStringValue(
    key string,
    value string,
) KindHelmChartResource
```

## Parameters

- `key` (`string`) -- The Helm value key.
- `value` (`string`) -- The Helm value.

## Returns

[`KindHelmChartResource`](/reference/api/go/communitytoolkit.aspire.hosting.kind/kindhelmchartresource.md) -- A reference to the `IResourceBuilder`.

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

## Applies to

- [`KindHelmChartResource`](/reference/api/go/communitytoolkit.aspire.hosting.kind/kindhelmchartresource.md)
