IResourceWithConnectionString.withConnectionProperty

Method
📦 Aspire.Hosting v17.0.0
interface IResourceWithConnectionString {
// ... omitted for brevity
withConnectionProperty(
name: string,
value: string | ReferenceExpression): IResourceWithConnectionString;
}

Signature

methodwithConnectionPropertybuilder
Adds a connection property annotation to the resource being built.
withConnectionProperty(
name: string,
value: string | ReferenceExpression): IResourceWithConnectionString
namestringThe name of the connection property to add.
valuestring | ReferenceExpressionThe value to assign to the connection property, specified as a string or reference expression.
IResourceWithConnectionString

Defined on

This method is defined on the following type: