SqlAuthenticationParameters Costruttori

Definizione

Overload

Nome Descrizione
SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid)

Inizializza una nuova istanza della SqlAuthenticationParameters classe utilizzando il metodo di autenticazione, il nome del server, il nome del database, l'URI della risorsa, l'URI dell'autorità, il nome utente/ID, la password utente e l'ID connessione specificati.

SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid, Int32)

Costruisci con valori per tutte le proprietà.

SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid)

Inizializza una nuova istanza della SqlAuthenticationParameters classe utilizzando il metodo di autenticazione, il nome del server, il nome del database, l'URI della risorsa, l'URI dell'autorità, il nome utente/ID, la password utente e l'ID connessione specificati.

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)

Parametri

authenticationMethod
SqlAuthenticationMethod

Uno dei valori di enumerazione che specifica il metodo di autenticazione.

serverName
String

Nome del server.

databaseName
String

Nome del database.

resource
String

URI della risorsa.

authority
String

URI dell'autorità.

userId
String

Nome/ID dell'account di accesso utente.

password
String

Password utente.

connectionId
Guid

ID connessione.

Si applica a

SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid, Int32)

Origine:
SqlAuthenticationParameters.cs
Origine:
SqlAuthenticationParameters.cs
Origine:
SqlAuthenticationParameters.cs

Costruisci con valori per tutte le proprietà.

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)

Parametri

authenticationMethod
SqlAuthenticationMethod

Metodo di autenticazione.

serverName
String

Nome del server.

databaseName
String

Nome del database.

resource
String

URI della risorsa.

authority
String

URI dell'autorità.

userId
String

Nome/ID account di accesso utente oppure Null, se non applicabile.

password
String

Password utente o Null, se non applicabile.

connectionId
Guid

ID connessione.

connectionTimeout
Int32

Timeout di autenticazione, in secondi. Il timeout complessivo della connessione viene gestito dal driver; questo timeout si applica solo all'autenticazione.

Si applica a