RoleManagerEventArgs 类

定义

RoleManagerModule 类的 GetRoles 事件提供事件数据。Provides event data for the GetRoles event of the RoleManagerModule class.

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

注解

RoleManagerEventArgs对象为类的事件提供事件信息 GetRoles RoleManagerModuleThe RoleManagerEventArgs object provides event information to the GetRoles event of the RoleManagerModule class. RoleManagerEventArgs对象提供对 HttpContext 当前请求的的访问权限, Boolean RolesPopulated 属性用于启用或取消 RolePrincipal 通过创建 RoleManagerModuleThe RoleManagerEventArgs object provides access to the HttpContext of the current request, and a BooleanRolesPopulated property is used to enable or cancel creation of a RolePrincipal by the RoleManagerModule.

构造函数

RoleManagerEventArgs(HttpContext)

创建 RoleManagerEventArgs 类的一个实例,并将 Context 属性设置为指定的 HttpContextCreates an instance of the RoleManagerEventArgs class and sets the Context property to the specified HttpContext.

属性

Context

获取当前请求的 HttpContextGets the HttpContext for the current request.

RolesPopulated

获取或设置一个值,指示角色信息是否已应用到当前用户。Gets or sets a value indicating whether role information has been applied to the current user.

方法

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()

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

(继承自 Object)

适用于