SqlAuthenticationProvider.BeforeLoad(SqlAuthenticationMethod) 方法

定義

此方法會在提供者加入 SQL 驅動程式登錄檔前立即呼叫。

public:
 virtual void BeforeLoad(System::Data::SqlClient::SqlAuthenticationMethod authenticationMethod);
public virtual void BeforeLoad(System.Data.SqlClient.SqlAuthenticationMethod authenticationMethod);
abstract member BeforeLoad : System.Data.SqlClient.SqlAuthenticationMethod -> unit
override this.BeforeLoad : System.Data.SqlClient.SqlAuthenticationMethod -> unit
Public Overridable Sub BeforeLoad (authenticationMethod As SqlAuthenticationMethod)

參數

authenticationMethod
SqlAuthenticationMethod

驗證方法。

備註

避免使用此方法執行長時間等待的任務,因為這可能會阻擋其他執行緒存取提供者登錄檔。

適用於