Share via


SqlAuthenticationProvider.BeforeUnload(SqlAuthenticationMethod) Méthode

Définition

Cette méthode est appelée juste avant que le fournisseur ne soit supprimé du registre de pilotes SQL.

public:
 virtual void BeforeUnload(System::Data::SqlClient::SqlAuthenticationMethod authenticationMethod);
public virtual void BeforeUnload (System.Data.SqlClient.SqlAuthenticationMethod authenticationMethod);
abstract member BeforeUnload : System.Data.SqlClient.SqlAuthenticationMethod -> unit
override this.BeforeUnload : System.Data.SqlClient.SqlAuthenticationMethod -> unit
Public Overridable Sub BeforeUnload (authenticationMethod As SqlAuthenticationMethod)

Paramètres

authenticationMethod
SqlAuthenticationMethod

Méthode d’authentification.

Remarques

Par exemple, cette méthode est appelée lorsqu’un autre fournisseur avec la même méthode d’authentification remplace ce fournisseur dans le registre des pilotes SQL. Évitez d’effectuer une tâche d’attente longue dans cette méthode, car elle peut empêcher d’autres threads d’accéder au registre du fournisseur.

S’applique à