SqlAuthenticationProvider.BeforeLoad(SqlAuthenticationMethod) 方法

定义

调用此方法后立即在 SQL 驱动程序注册表中添加提供程序。This method is called immediately before the provider is added to SQL drivers registry.

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

身份验证方法。The authentication method.

注解

请避免在此方法中执行长时间等待的任务,因为这会阻止其他线程访问提供程序注册表。Avoid performing long-waiting tasks in this method, since it can block other threads from accessing the provider registry.

适用于