Skip to content
Docs Try Aspire
Docs Try

getConnectionString

Method
📦 Aspire.Hosting.Testing v13.3.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 method applies to the following types: