Skip to content
Docs Try Aspire

getConnectionString

Function
📦 Aspire.Hosting v13.2.0-preview.1.26159.1
interface IConfiguration {
// ... omitted for brevity
getConnectionString(name: string): string;
}

Signature

method getConnectionString
Gets a connection string by name
getConnectionString(name: string): string
name string
string

Applies to

This function is an extension method on the following types: