Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ResourceWithConnectionString.GetConnectionProperty

Method
📦 Aspire.Hosting v17.0.0
type ResourceWithConnectionString interface {
// ... 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

The value associated with the specified connection property key.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: