DistributedApplicationFactory.GetConnectionString(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the connection string for the specified resource.
public System.Threading.Tasks.ValueTask<string?> GetConnectionString (string resourceName);
member this.GetConnectionString : string -> System.Threading.Tasks.ValueTask<string>
Public Function GetConnectionString (resourceName As String) As ValueTask(Of String)
Parameters
- resourceName
- String
The resource name.
Returns
The connection string for the specified resource.
Exceptions
The resource was not found or does not expose a connection string.