共用方式為


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

驗證方法。

備註

避免在此方法中執行長時間等候的工作,因為它可以封鎖其他執行緒存取提供者登錄。

適用於