Dela via


SqlAuthenticationProvider.BeforeUnload(SqlAuthenticationMethod) Method

Definition

This method is called immediately before the provider is removed from the SQL drivers registry.

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)

Parameters

authenticationMethod
SqlAuthenticationMethod

The authentication method.

Remarks

For example, this method is called when a different provider with the same authentication method overrides this provider in the SQL drivers registry. Avoid performing long-waiting task in this method, since it can block other threads from accessing the provider registry.

Applies to