SqlAuthenticationProvider.BeforeLoad(SqlAuthenticationMethod) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在将提供程序添加到 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
身份验证方法。
注解
避免在此方法中执行长时间等待的任务,因为它可以阻止其他线程访问提供程序注册表。
此方法不得引发。