Skip to content
Docs Try Aspire

getConnectionString

Function
📦 Aspire.Hosting.Testing v13.2.0
interface DistributedApplication {
// ... omitted for brevity
getConnectionString(resourceName: string): string;
}

Signature

method getConnectionString
Gets the connection string for the specified resource.
getConnectionString(resourceName: string): string
resourceName string
string

Applies to

This function is an extension method on the following types: