RolePrincipal Members

Represents security information for the current HTTP request, including role membership. This class cannot be inherited.

The following tables list the members exposed by the RolePrincipal type.

  Name Description
Public method RolePrincipal Overloaded. Creates a new instance of the RolePrincipal class.
Top

  Name Description
Public property CachedListChanged Gets a value indicating whether the list of role names cached with the RolePrincipal object has been modified.
Public property CookiePath Gets the path for the cached role names cookie.
Public property Expired Gets a value indicating whether the roles cookie has expired.
Public property ExpireDate Gets the date and time when the roles cookie will expire.
Public property Identity Gets the security identity for the current HTTP request.
Public property IsRoleListCached Gets a value indicating whether the list of roles for the user has been cached in a cookie.
Public property IssueDate Gets the date and time that the roles cookie was issued.
Public property ProviderName Gets the name of the role provider that stores and retrieves role information for the user.
Public property Version Gets the version number of the roles cookie.
Top

(see also Protected Methods )
  Name Description
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetRoles Gets a list of roles that the RolePrincipal is a member of.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method IsInRole Gets a value indicating whether the user represented by the RolePrincipal is in the specified role.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method SetDirty Marks the cached role list as having been changed.
Public method ToEncryptedTicket Returns the role information cached with the RolePrincipal object encrypted based on the CookieProtectionValue.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

Community Additions

ADD
Show: