This documentation is archived and is not being maintained.

RolePrincipal Methods

The RolePrincipal type exposes the following members.

  NameDescription
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (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.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (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

  NameDescription
Explicit interface implemetation Private method ISerializable.GetObjectData For a description of this member, see GetObjectData.
Top
Show: