SqlAuthenticationParameters 构造函数

定义

使用指定的身份验证方法、服务器名称、数据库名称、资源 URI、颁发机构 URI、用户登录名/ID、用户密码和连接 ID 初始化类的新实例 SqlAuthenticationParameters

protected:
 SqlAuthenticationParameters(System::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(System.Data.SqlClient.SqlAuthenticationMethod authenticationMethod, string serverName, string databaseName, string resource, string authority, string userId, string password, Guid connectionId);
new System.Data.SqlClient.SqlAuthenticationParameters : System.Data.SqlClient.SqlAuthenticationMethod * string * string * string * string * string * string * Guid -> System.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

指定身份验证方法的枚举值之一。

serverName
String

服务器名称

databaseName
String

数据库名称。

resource
String

资源 URI。

authority
String

颁发机构 URI。

userId
String

用户登录名/ID。

password
String

用户密码。

connectionId
Guid

连接 ID。

适用于