SqlAuthenticationProvider.SetProvider Methode

Definition

Legt einen Authentifizierungsanbieter nach Methode fest.

public:
 static bool SetProvider(System::Data::SqlClient::SqlAuthenticationMethod authenticationMethod, System::Data::SqlClient::SqlAuthenticationProvider ^ provider);
public static bool SetProvider(System.Data.SqlClient.SqlAuthenticationMethod authenticationMethod, System.Data.SqlClient.SqlAuthenticationProvider provider);
static member SetProvider : System.Data.SqlClient.SqlAuthenticationMethod * System.Data.SqlClient.SqlAuthenticationProvider -> bool
Public Shared Function SetProvider (authenticationMethod As SqlAuthenticationMethod, provider As SqlAuthenticationProvider) As Boolean

Parameter

authenticationMethod
SqlAuthenticationMethod

Die Authentifizierungsmethode.

provider
SqlAuthenticationProvider

Der Authentifizierungsanbieter.

Gibt zurück

true wenn der Vorgang erfolgreich war; false andernfalls (z. B. verbietet der vorhandene Anbieter die Außerkraftsetzung).

Gilt für: