SqlAuthenticationParameters Konstruktor

Definition

Initierar en ny instans av SqlAuthenticationParameters klassen med den angivna autentiseringsmetoden, servernamn, databasnamn, resurs-URI, utfärdar-URI, användarnamn/ID för användarinloggning, användarlösenord och anslutnings-ID.

protected:
 SqlAuthenticationParameters(System::Data::SqlClient::SqlAuthenticationMethod authenticationMethod, System::String ^ serverName, System::String ^ databaseName, System::String ^ resource, System::String ^ authority, System::String ^ userId, System::String ^ password, Guid connectionId);
protected SqlAuthenticationParameters(System.Data.SqlClient.SqlAuthenticationMethod authenticationMethod, string serverName, string databaseName, string resource, string authority, string userId, string password, Guid connectionId);
new System.Data.SqlClient.SqlAuthenticationParameters : System.Data.SqlClient.SqlAuthenticationMethod * string * string * string * string * string * string * Guid -> System.Data.SqlClient.SqlAuthenticationParameters
Protected Sub New (authenticationMethod As SqlAuthenticationMethod, serverName As String, databaseName As String, resource As String, authority As String, userId As String, password As String, connectionId As Guid)

Parametrar

authenticationMethod
SqlAuthenticationMethod

Ett av uppräkningsvärdena som anger autentiseringsmetoden.

serverName
String

Servernamnet.

databaseName
String

Databasnamnet

resource
String

Resurs-URI:n.

authority
String

Utfärdarens URI.

userId
String

Användarens inloggningsnamn/ID.

password
String

Användarlösenordet.

connectionId
Guid

Anslutnings-ID:t.

Gäller för