Skip to content
DocsTry Aspire
DocsTry

IResourceWithConnectionString.withConnectionProperty

Method
📦 Aspire.Hosting v13.4.0
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

Defined on

This method is defined on the following type: