Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

GetConnectionString

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

Applies to

This method applies to the following types: