getConnectionProperty

Method
📦 Aspire.Hosting v17.0.0
interface IResourceWithConnectionString {
// ... omitted for brevity
getConnectionProperty(key: string): ReferenceExpression;
}

Signature

methodgetConnectionProperty
Retrieves the value of a specified connection property from the resource's connection properties.
getConnectionProperty(key: string): ReferenceExpression
keystringThe key of the connection property to retrieve. Cannot be null.
ReferenceExpression

Applies to

This method applies to the following types: