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

身份验证方法。

注解

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

此方法不得引发。

适用于