Språk

SspiAuthenticationParameters(String, String, String, String, String) Constructor

Definition

Creates an instance of the SspiAuthenticationParameters.

public SspiAuthenticationParameters(string serverName, string resource, string? userId = default, string? databaseName = default, string? password = default);
public SspiAuthenticationParameters(string serverName, string resource, string userId = default, string databaseName = default, string password = default);
new Microsoft.Data.SqlClient.SspiAuthenticationParameters : string * string * string * string * string -> Microsoft.Data.SqlClient.SspiAuthenticationParameters
Public Sub New (serverName As String, resource As String, Optional userId As String = Nothing, Optional databaseName As String = Nothing, Optional password As String = Nothing)

Parameters

serverName
String

The name of the server.

resource
String

The resource (often the server service principal name).

userId
String

The user id if available.

databaseName
String

The database name if available.

password
String

The password if available.

Applies to