共用方式為


ActiveDirectoryAuthenticationProvider.BeforeLoad 方法

定義

這個方法會在將提供者新增至驗證提供者登錄之前立即呼叫。

public:
 override void BeforeLoad(Microsoft::Data::SqlClient::SqlAuthenticationMethod authentication);
public override void BeforeLoad (Microsoft.Data.SqlClient.SqlAuthenticationMethod authentication);
override this.BeforeLoad : Microsoft.Data.SqlClient.SqlAuthenticationMethod -> unit
Public Overrides Sub BeforeLoad (authentication As SqlAuthenticationMethod)

參數

authentication
SqlAuthenticationMethod

驗證方法。

備註

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

適用於