Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

withConnectionProperty

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

Signature

methodwithConnectionPropertybuilder
Adds a connection property annotation to the resource being built.
withConnectionProperty(
name: string,
value: ReferenceExpression): IResourceWithConnectionString
namestring
valueReferenceExpression
IResourceWithConnectionString

Applies to

This method applies to the following types: