RoleManagerEventArgs 类

定义

GetRoles 类的 RoleManagerModule 事件提供事件数据。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

注解

对象为类RoleManagerModule的事件提供事件信息。 GetRoles RoleManagerEventArgsThe RoleManagerEventArgs object provides event information to the GetRoles event of the RoleManagerModule class. RolePrincipal RoleManagerModule对象提供HttpContextBoolean 当前请求的的访问权限,属性用于启用或取消通过创建。RolesPopulated RoleManagerEventArgsThe 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()

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

(继承自 Object)

适用于

另请参阅