SqlAuthenticationProvider.SetProvider Méthode

Définition

Définit un fournisseur d’authentification par méthode.

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

Paramètres

authenticationMethod
SqlAuthenticationMethod

Méthode d’authentification.

provider
SqlAuthenticationProvider

Fournisseur d’authentification.

Retours

true si l’opération a réussi ; sinon, false (par exemple, le fournisseur existant n’autorise pas la substitution).

S’applique à