# withConnectionPropertyValue

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

Adds a connection property with a string value

## Definition

```typescript
interface ConnectionStringResource {
  // ... omitted for brevity
  withConnectionPropertyValue(
    name: string,
    value: string): IResourceWithConnectionString
}
```

## Parameters

- `name` (`string`)
- `value` (`string`)

## Returns

[IResourceWithConnectionString](/reference/api/typescript/aspire.hosting/iresourcewithconnectionstring.md) `builder`

## Applies to

- [ConnectionStringResource](/reference/api/typescript/aspire.hosting/connectionstringresource.md)
