SqlAuthenticationParameters コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid) |
指定した認証方法、サーバー名、データベース名、リソース URI、機関 URI、ユーザー ログイン名/ID、ユーザー パスワード、接続 ID を使用して、 SqlAuthenticationParameters クラスの新しいインスタンスを初期化します。 |
| SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid, Int32) |
すべてのプロパティの値を使用して構築します。 |
SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid)
指定した認証方法、サーバー名、データベース名、リソース URI、機関 URI、ユーザー ログイン名/ID、ユーザー パスワード、接続 ID を使用して、 SqlAuthenticationParameters クラスの新しいインスタンスを初期化します。
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)
パラメーター
- authenticationMethod
- SqlAuthenticationMethod
認証方法を指定する列挙値の 1 つ。
- serverName
- String
サーバー名。
- databaseName
- String
データベース名。
- resource
- String
リソース URI。
- authority
- String
機関 URI。
- userId
- String
ユーザー ログイン名/ID。
- password
- String
ユーザー パスワード。
- connectionId
- Guid
接続 ID。
適用対象
SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid, Int32)
すべてのプロパティの値を使用して構築します。
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)
パラメーター
- authenticationMethod
- SqlAuthenticationMethod
認証方法。
- serverName
- String
サーバー名。
- databaseName
- String
データベース名。
- resource
- String
リソース URI。
- authority
- String
機関 URI。
- userId
- String
ユーザー ログイン名/ID。該当しない場合は null。
- password
- String
ユーザー パスワード。該当しない場合は null。
- connectionId
- Guid
接続 ID。
- connectionTimeout
- Int32
認証タイムアウト (秒単位)。 全体的な接続タイムアウトはドライバーによって管理されます。このタイムアウトは認証にのみ適用されます。