This documentation is archived and is not being maintained.
RolePrincipal Methods
Visual Studio 2010
The RolePrincipal type exposes the following members.
| Name | Description | |
|---|---|---|
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetObjectData | Populates a SerializationInfo object with the data that is required in order to serialize the target object using the specified streaming context. |
|
GetRoles | Gets a list of roles that the RolePrincipal is a member of. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
IsInRole | Gets a value indicating whether the user represented by the RolePrincipal is in the specified role. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
SetDirty | Marks the cached role list as having been changed. |
|
ToEncryptedTicket | Returns the role information cached with the RolePrincipal object encrypted based on the CookieProtectionValue. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
ISerializable.GetObjectData | For a description of this member, see GetObjectData. |
Show: