ActiveDirectoryAuthenticationProvider.BeforeUnload Method

Definition

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

public:
 override void BeforeUnload(Microsoft::Data::SqlClient::SqlAuthenticationMethod authentication);
public override void BeforeUnload (Microsoft.Data.SqlClient.SqlAuthenticationMethod authentication);
override this.BeforeUnload : Microsoft.Data.SqlClient.SqlAuthenticationMethod -> unit
Public Overrides Sub BeforeUnload (authentication As SqlAuthenticationMethod)

Parameters

authentication
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 authentication provider registry. Avoid performing long-waiting task in this method, since it can block other threads from accessing the provider registry.

Applies to