SqlAuthenticationProvider.BeforeLoad(SqlAuthenticationMethod) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在将提供程序添加到 SQL 驱动程序注册表之前立即调用此方法。
对于新开发,请使用Microsoft。Data.SqlClient。 此页面记录 System.Data.SqlClient。
public:
virtual void BeforeLoad(System::Data::SqlClient::SqlAuthenticationMethod authenticationMethod);
public virtual void BeforeLoad(System.Data.SqlClient.SqlAuthenticationMethod authenticationMethod);
abstract member BeforeLoad : System.Data.SqlClient.SqlAuthenticationMethod -> unit
override this.BeforeLoad : System.Data.SqlClient.SqlAuthenticationMethod -> unit
Public Overridable Sub BeforeLoad (authenticationMethod As SqlAuthenticationMethod)
参数
- authenticationMethod
- SqlAuthenticationMethod
身份验证方法。
注解
避免在此方法中执行长时间等待的任务,因为它可以阻止其他线程访问提供程序注册表。