SqlAuthenticationProvider.BeforeUnload(SqlAuthenticationMethod) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Cette méthode est appelée immédiatement avant que le fournisseur soit supprimé du registre du fournisseur d’authentification SQL.
public:
virtual void BeforeUnload(Microsoft::Data::SqlClient::SqlAuthenticationMethod authenticationMethod);
public virtual void BeforeUnload(Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod);
abstract member BeforeUnload : Microsoft.Data.SqlClient.SqlAuthenticationMethod -> unit
override this.BeforeUnload : Microsoft.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 du fournisseur d’authentification SQL. Évitez d’effectuer une tâche en attente longue dans cette méthode, car elle peut empêcher d’autres threads d’accéder au registre du fournisseur.
Cette méthode ne doit pas être levée.