Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

GetConnectionProperty

Method
📦 Aspire.Hosting v17.0.0
func (ResourceWithConnectionString) 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().

Applies to

This method applies to the following types: