SqlAuthenticationProvider.BeforeLoad(SqlAuthenticationMethod) 方法

定義

此方法會在提供者加入 SQL 認證提供者登錄檔前立即呼叫。

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

參數

authenticationMethod
SqlAuthenticationMethod

驗證方法。

備註

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

此方法不得投擲。

適用於