SqlAuthenticationParameters Konstruktory
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
| Name | Description |
|---|---|
| SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid) |
Inicializuje novou instanci SqlAuthenticationParameters třídy pomocí zadané metody ověřování, názvu serveru, názvu databáze, identifikátoru URI prostředku, identifikátoru URI autority, přihlašovacího jména nebo ID uživatele, hesla uživatele a ID připojení. |
| SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid, Int32) |
Sestavte s hodnotami pro všechny vlastnosti. |
SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid)
Inicializuje novou instanci SqlAuthenticationParameters třídy pomocí zadané metody ověřování, názvu serveru, názvu databáze, identifikátoru URI prostředku, identifikátoru URI autority, přihlašovacího jména nebo ID uživatele, hesla uživatele a ID připojení.
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)
Parametry
- authenticationMethod
- SqlAuthenticationMethod
Jedna z hodnot výčtu, která určuje metodu ověřování.
- serverName
- String
Název serveru.
- databaseName
- String
Název databáze.
- resource
- String
Identifikátor URI prostředku.
- authority
- String
Identifikátor URI autority.
- userId
- String
Přihlašovací jméno nebo ID uživatele.
- password
- String
Heslo uživatele.
- connectionId
- Guid
ID připojení.
Platí pro
SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid, Int32)
Sestavte s hodnotami pro všechny vlastnosti.
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)
Parametry
- authenticationMethod
- SqlAuthenticationMethod
Metoda ověřování.
- serverName
- String
Název serveru.
- databaseName
- String
Název databáze.
- resource
- String
Identifikátor URI prostředku.
- authority
- String
Identifikátor URI autority.
- userId
- String
Přihlašovací jméno nebo ID uživatele nebo hodnota null, pokud není k dispozici.
- password
- String
Uživatelské heslo nebo hodnota null, pokud není k dispozici.
- connectionId
- Guid
ID připojení.
- connectionTimeout
- Int32
Časový limit ověřování v sekundách. Celkový časový limit připojení spravuje ovladač; tento časový limit platí pouze pro ověřování.