SqlAuthenticationParameters Konstruktoren
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| Name | Beschreibung |
|---|---|
| SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid) |
Initialisiert eine neue Instanz der Klasse mithilfe der SqlAuthenticationParameters angegebenen Authentifizierungsmethode, des Servernamens, des Datenbanknamens, des Ressourcen-URI, des Autoritäts-URI, des Benutzeranmeldungsnamens/der ID, des Benutzerkennworts und der Verbindungs-ID. |
| SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid, Int32) |
Mit Werten für alle Eigenschaften konstruieren. |
SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid)
Initialisiert eine neue Instanz der Klasse mithilfe der SqlAuthenticationParameters angegebenen Authentifizierungsmethode, des Servernamens, des Datenbanknamens, des Ressourcen-URI, des Autoritäts-URI, des Benutzeranmeldungsnamens/der ID, des Benutzerkennworts und der Verbindungs-ID.
protected:
SqlAuthenticationParameters(Microsoft::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(Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod, string serverName, string databaseName, string resource, string authority, string userId, string password, Guid connectionId);
new Microsoft.Data.SqlClient.SqlAuthenticationParameters : Microsoft.Data.SqlClient.SqlAuthenticationMethod * string * string * string * string * string * string * Guid -> Microsoft.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)
Parameter
- authenticationMethod
- SqlAuthenticationMethod
Einer der Enumerationswerte, die die Authentifizierungsmethode angibt.
- serverName
- String
Der Servername.
- databaseName
- String
Der Datenbankname.
- resource
- String
Der Ressourcen-URI.
- authority
- String
Der Autoritäts-URI.
- userId
- String
Der Anmeldename/die ID des Benutzers.
- password
- String
Das Benutzerkennwort.
- connectionId
- Guid
Die Verbindungs-ID.
Gilt für:
SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid, Int32)
Mit Werten für alle Eigenschaften konstruieren.
protected:
SqlAuthenticationParameters(Microsoft::Data::SqlClient::SqlAuthenticationMethod authenticationMethod, System::String ^ serverName, System::String ^ databaseName, System::String ^ resource, System::String ^ authority, System::String ^ userId, System::String ^ password, Guid connectionId, int connectionTimeout);
public:
SqlAuthenticationParameters(Microsoft::Data::SqlClient::SqlAuthenticationMethod authenticationMethod, System::String ^ serverName, System::String ^ databaseName, System::String ^ resource, System::String ^ authority, System::String ^ userId, System::String ^ password, Guid connectionId, int connectionTimeout);
protected SqlAuthenticationParameters(Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod, string serverName, string databaseName, string resource, string authority, string userId, string password, Guid connectionId, int connectionTimeout);
public SqlAuthenticationParameters(Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod, string serverName, string databaseName, string resource, string authority, string? userId, string? password, Guid connectionId, int connectionTimeout);
new Microsoft.Data.SqlClient.SqlAuthenticationParameters : Microsoft.Data.SqlClient.SqlAuthenticationMethod * string * string * string * string * string * string * Guid * int -> Microsoft.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, connectionTimeout As Integer)
Public 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, connectionTimeout As Integer)
Parameter
- authenticationMethod
- SqlAuthenticationMethod
Die Authentifizierungsmethode.
- serverName
- String
Der Servername.
- databaseName
- String
Der Datenbankname.
- resource
- String
Der Ressourcen-URI.
- authority
- String
Der Autoritäts-URI.
- userId
- String
Der Anmeldename/die ID des Benutzers oder null, falls nicht zutreffend.
- password
- String
Das Benutzerkennwort oder null, falls nicht zutreffend.
- connectionId
- Guid
Die Verbindungs-ID.
- connectionTimeout
- Int32
Das Timeout der Authentifizierung in Sekunden. Das gesamtverbindungstimeout wird vom Treiber verwaltet; Dieses Timeout gilt nur für die Authentifizierung.