Skip to content
Docs Try Aspire

withConnectionProperty

Function
📦 Aspire.Hosting v13.2.0-preview.1.26159.1
interface ConnectionStringResource {
// ... omitted for brevity
withConnectionProperty(
name: string,
value: ReferenceExpression): IResourceWithConnectionString;
}

Signature

method withConnectionProperty builder
Adds a connection property with a reference expression
withConnectionProperty(
name: string,
value: ReferenceExpression): IResourceWithConnectionString
name string
value ReferenceExpression
IResourceWithConnectionString

Applies to

This function is an extension method on the following types: