SqlAuthenticationProvider.BeforeUnload(SqlAuthenticationMethod) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
此方法會在提供者從 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)
參數
- authenticationMethod
- SqlAuthenticationMethod
驗證方法。
備註
例如,當使用相同認證方法的不同提供者在 SQL 認證提供者登錄檔中覆蓋該提供者時,會呼叫此方法。 避免使用此方法執行長時間等待任務,因為這可能會阻擋其他執行緒存取提供者登錄檔。
此方法不得投擲。