SqlAuthenticationParameters Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
| Nazwa | Opis |
|---|---|
| SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid) |
Inicjuje nowe wystąpienie SqlAuthenticationParameters klasy przy użyciu określonej metody uwierzytelniania, nazwy serwera, nazwy bazy danych, identyfikatora URI zasobu, identyfikatora URI urzędu, nazwy logowania użytkownika/identyfikatora, hasła użytkownika i identyfikatora połączenia. |
| SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid, Int32) |
Konstruuj z wartościami dla wszystkich właściwości. |
SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid)
Inicjuje nowe wystąpienie SqlAuthenticationParameters klasy przy użyciu określonej metody uwierzytelniania, nazwy serwera, nazwy bazy danych, identyfikatora URI zasobu, identyfikatora URI urzędu, nazwy logowania użytkownika/identyfikatora, hasła użytkownika i identyfikatora połączenia.
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 wartości wyliczenia określająca metodę uwierzytelniania.
- serverName
- String
Nazwa serwera.
- databaseName
- String
Nazwa bazy danych.
- resource
- String
Identyfikator URI zasobu.
- authority
- String
Identyfikator URI urzędu.
- userId
- String
Nazwa/identyfikator logowania użytkownika.
- password
- String
Hasło użytkownika.
- connectionId
- Guid
Identyfikator połączenia.
Dotyczy
SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid, Int32)
Konstruuj z wartościami dla wszystkich właściwości.
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 uwierzytelniania.
- serverName
- String
Nazwa serwera.
- databaseName
- String
Nazwa bazy danych.
- resource
- String
Identyfikator URI zasobu.
- authority
- String
Identyfikator URI urzędu.
- userId
- String
Nazwa/identyfikator logowania użytkownika lub wartość null, jeśli nie ma zastosowania.
- password
- String
Hasło użytkownika lub wartość null, jeśli nie ma zastosowania.
- connectionId
- Guid
Identyfikator połączenia.
- connectionTimeout
- Int32
Limit czasu uwierzytelniania w sekundach. Ogólny limit czasu połączenia jest zarządzany przez sterownik; ten limit czasu dotyczy tylko uwierzytelniania.