SqlAuthenticationParameters Constructors

Definition

Overloads

Name Description
SqlAuthenticationParameters(SqlAuthenticationMethod, String, String, String, String, String, String, Guid)

Initializes a new instance of the SqlAuthenticationParameters class using the specified authentication method, server name, database name, resource URI, authority URI, user login name/ID, user password and connection ID.

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

Construct with values for all properties.

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

Initializes a new instance of the SqlAuthenticationParameters class using the specified authentication method, server name, database name, resource URI, authority URI, user login name/ID, user password and connection ID.

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)

Parameters

authenticationMethod
SqlAuthenticationMethod

One of the enumeration values that specifies the authentication method.

serverName
String

The server name.

databaseName
String

The database name.

resource
String

The resource URI.

authority
String

The authority URI.

userId
String

The user login name/ID.

password
String

The user password.

connectionId
Guid

The connection ID.

Applies to

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

Source:
SqlAuthenticationParameters.cs
Source:
SqlAuthenticationParameters.cs
Source:
SqlAuthenticationParameters.cs

Construct with values for all properties.

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)

Parameters

authenticationMethod
SqlAuthenticationMethod

The authentication method.

serverName
String

The server name.

databaseName
String

The database name.

resource
String

The resource URI.

authority
String

The authority URI.

userId
String

The user login name/ID, or null if not applicable.

password
String

The user password, or null if not applicable.

connectionId
Guid

The connection ID.

connectionTimeout
Int32

The authentication timeout, in seconds. The overall connection timeout is managed by the driver; this timeout only applies to authentication.

Applies to