SqlAuthenticationProvider Class

Definition

定义验证提供程序的核心行为,并为派生类提供基类。Defines the core behavior of authentication providers and provides a base class for derived classes.

public ref class SqlAuthenticationProvider abstract
public abstract class SqlAuthenticationProvider
type SqlAuthenticationProvider = class
Public MustInherit Class SqlAuthenticationProvider
Inheritance
SqlAuthenticationProvider

Remarks

派生类必须提供一个无参数的构造函数, 前提是这些类可从 app.config 文件实例化。Derived classes must provide a parameterless constructor if they can be instantiated from the app.config file.

Constructors

SqlAuthenticationProvider()

从派生类中的构造函数中调用,用于初始化 SqlAuthenticationProvider 类。Called from constructors in derived classes to initialize the SqlAuthenticationProvider class.

Methods

AcquireTokenAsync(SqlAuthenticationParameters)

从颁发机构获取安全令牌。Acquires a security token from the authority.

BeforeLoad(SqlAuthenticationMethod)

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

BeforeUnload(SqlAuthenticationMethod)

调用此方法后立即从 SQL 驱动程序注册表中删除提供程序。This method is called immediately before the provider is removed from the SQL drivers registry.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetProvider(SqlAuthenticationMethod)

按方法获取验证提供程序。Gets an authentication provider by method.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
IsSupported(SqlAuthenticationMethod)

指示是否支持指定的身份验证方法。Indicates whether the specified authentication method is supported.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
SetProvider(SqlAuthenticationMethod, SqlAuthenticationProvider)

按方法设置验证提供程序。Sets an authentication provider by method.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

Applies to