SqlServerServerResource Methods
Class Methods 1 member
A resource that represents a SQL Server container.
GetConnectionStringAsync(CancellationToken) Section titled GetConnectionStringAsync(CancellationToken) ValueTask<string?> Gets the connection string for the SQL Server.
public class SqlServerServerResource{ public ValueTask<string?> GetConnectionStringAsync( CancellationToken cancellationToken = default(CancellationToken)) { // ... }}Parameters
cancellationToken CancellationToken optional A Threading.CancellationToken to observe while waiting for the task to complete. Returns
ValueTask<string?> A connection string for the SQL Server in the form "Server=host,port;User ID=sa;Password=password;TrustServerCertificate=true".