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

身份验证方法。

注解

避免在此方法中执行长时间等待的任务,因为它可能会阻止其他线程访问提供程序注册表。

适用于