RolePrincipal Members
.NET Framework 3.0
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 | |
|---|---|---|
| CachedListChanged | Gets a value indicating whether the list of role names cached with the RolePrincipal object has been modified. |
| CookiePath | Gets the path for the cached role names cookie. |
| Expired | Gets a value indicating whether the roles cookie has expired. |
| ExpireDate | Gets the date and time when the roles cookie will expire. |
| Identity | Gets the security identity for the current HTTP request. |
| IsRoleListCached | Gets a value indicating whether the list of roles for the user has been cached in a cookie. |
| IssueDate | Gets the date and time that the roles cookie was issued. |
| ProviderName | Gets the name of the role provider that stores and retrieves role information for the user. |
| Version | Gets the version number of the roles cookie. |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| Equals | Overloaded. Determines whether two Object instances are equal. (inherited from Object) |
| GetHashCode | Serves as a hash function for a particular type. (inherited from Object) |
| 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. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (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 | |
|---|---|---|
| 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) |
| MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object) |
| Name | Description | |
|---|---|---|
| System.Runtime.Serialization.ISerializable.GetObjectData | For a description of this member, see GetObjectData. |
Reference
RolePrincipal ClassSystem.Web.Security Namespace
Other Resources
Managing Authorization Using RolesCommunity Additions
ADD
Show: