SqlAuthenticationParameters Constructor

Definitie

Initialiseert een nieuw exemplaar van de SqlAuthenticationParameters klasse met behulp van de opgegeven verificatiemethode, servernaam, databasenaam, resource-URI, instantie-URI, aanmeldingsnaam/id van gebruiker, gebruikerswachtwoord en verbindings-id.

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)

Parameters

authenticationMethod
SqlAuthenticationMethod

Een van de opsommingswaarden waarmee de verificatiemethode wordt opgegeven.

serverName
String

De servernaam.

databaseName
String

De naam van de database.

resource
String

De resource-URI.

authority
String

De instantie-URI.

userId
String

De aanmeldingsnaam/id van de gebruiker.

password
String

Het gebruikerswachtwoord.

connectionId
Guid

De verbindings-id.

Van toepassing op