DefaultAuthenticationEventArgs 类

定义

为 DefaultAuthentication_OnAuthenticate 事件提供数据。Provides data for the DefaultAuthentication_OnAuthenticate event. 此类不能被继承。This class cannot be inherited.

public ref class DefaultAuthenticationEventArgs sealed : EventArgs
public sealed class DefaultAuthenticationEventArgs : EventArgs
type DefaultAuthenticationEventArgs = class
    inherit EventArgs
Public NotInheritable Class DefaultAuthenticationEventArgs
Inherits EventArgs
继承
DefaultAuthenticationEventArgs

注解

类用于向 DefaultAuthentication_OnAuthenticate 事件提供事件值并使你能够为当前请求指定自定义 Windows 标识。 DefaultAuthenticationEventArgsThe DefaultAuthenticationEventArgs class is used to supply event values to the DefaultAuthentication_OnAuthenticate event and to enable you to specify a custom Windows identity for the current request.

使用当前DefaultAuthenticationModule DefaultAuthenticationEventArgs 构造对象并将其传递给DefaultAuthentication_OnAuthenticate事件。HttpContextThe DefaultAuthenticationModule constructs a DefaultAuthenticationEventArgs object using the current HttpContext and passes it to the DefaultAuthentication_OnAuthenticate event.

构造函数

DefaultAuthenticationEventArgs(HttpContext)

初始化 DefaultAuthenticationEventArgs 类的新实例。Initializes a new instance of the DefaultAuthenticationEventArgs class.

属性

Context

为当前 HTTP 请求获取 HttpContext 对象。Gets the HttpContext object for the current HTTP request.

方法

Equals(Object)

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

(继承自 Object)
GetHashCode()

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

(继承自 Object)
GetType()

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

(继承自 Object)
MemberwiseClone()

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

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅