SqlAuthenticationProvider.BeforeUnload(SqlAuthenticationMethod) Method

Definition

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

C#
public virtual void BeforeUnload (Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod);

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

Product Versions
SqlClient .NET Core 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2
SqlClient .NET Framework 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2
SqlClient .NET Standard 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2