SqlServerServerResource.GetConnectionStringAsync(CancellationToken) Method

Definition

Gets the connection string for the SQL Server.

public System.Threading.Tasks.ValueTask<string?> GetConnectionStringAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetConnectionStringAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<string>
override this.GetConnectionStringAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<string>
Public Function GetConnectionStringAsync (Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of String)

Parameters

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for the task to complete.

Returns

A connection string for the SQL Server in the form "Server=host,port;User ID=sa;Password=password;TrustServerCertificate=true".

Implements

Applies to