PassportAuthenticationEventArgs 类

定义

警告

此 API 现已过时。

Authenticate 传递到 PassportAuthenticationModule 事件的事件参数。The event argument passed to the Authenticate event by a PassportAuthenticationModule. 由于此处已存在一个标识,因此这主要用于使用已提供的标识将自定义 IPrincipal 对象附加到上下文。Since there is already an identity at this point, this is useful mainly for attaching a custom IPrincipal object to the context using the supplied identity. 此类已弃用。This class is deprecated.

public ref class PassportAuthenticationEventArgs sealed : EventArgs
[System.Obsolete("This type is obsolete. The Passport authentication product is no longer supported and has been superseded by Live ID.")]
public sealed class PassportAuthenticationEventArgs : EventArgs
type PassportAuthenticationEventArgs = class
    inherit EventArgs
Public NotInheritable Class PassportAuthenticationEventArgs
Inherits EventArgs
继承
PassportAuthenticationEventArgs
属性

注解

此类已弃用且不再受支持。This class has been deprecated and is no longer supported. Microsoft Passport 网络已替换为 Windows Live ID。Microsoft Passport Network has been replaced by Windows Live ID. 有关如何使用 Windows Live ID 在 Web 应用程序中对用户进行身份验证的详细信息, 请参阅Windows LIVE ID SDKFor more information about how to use Windows Live ID to authenticate users in a Web application, see Windows Live ID SDK.

构造函数

PassportAuthenticationEventArgs(PassportIdentity, HttpContext)

初始化 PassportAuthenticationEventArgs 类的新实例。Initializes a new instance of the PassportAuthenticationEventArgs class. 此类已弃用。This class is deprecated.

属性

Context

为当前 HTTP 请求获取 HttpContext 对象。Gets the HttpContext object for the current HTTP request. 此类已弃用。This class is deprecated.

Identity

获取经过身份验证的 Passport 标识。Gets an authenticated Passport identity. 此类已弃用。This class is deprecated.

User

获取或设置要与请求关联的 IPrincipal 对象。Gets or sets the IPrincipal object to be associated with the request. 此类已弃用。This class is deprecated.

方法

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)

适用于