Share via


SqlAuthenticationProvider.BeforeUnload(SqlAuthenticationMethod) 方法

定義

此方法會在從 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)

參數

authenticationMethod
SqlAuthenticationMethod

驗證方法。

備註

例如,當具有相同驗證方法的不同提供者覆寫 SQL 驅動程式登錄中的這個提供者時,就會呼叫這個方法。 避免在此方法中執行長時間等候的工作,因為它可以封鎖其他線程存取提供者登錄。

適用於