Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

Configuration.GetConnectionString

Method
📦 Aspire.Hosting v17.0.0
type Configuration interface {
// ... omitted for brevity
GetConnectionString(name string) (*string, error)
}

Signature

methodGetConnectionString
Gets a connection string by name.
GetConnectionString(name string) (*string, error)
namestringThe connection string name.
(*string, error)

The connection string value, or null if not found.

Returns (*string, error).

Defined on

This method is defined on the following type: