System.Web.Security.RolePrincipal Members

The members of System.Web.Security.RolePrincipal are listed below.

See Also: Inherited members from System.Object

Public Constructors

Instantiates a System.Web.Security.RolePrincipal object for the specified identity.

Instantiates a System.Web.Security.RolePrincipal object for the specified identity with role information from the specified encryptedTicket.

Instantiates a System.Web.Security.RolePrincipal object for the specified identity using the specified providerName.

Instantiates a System.Web.Security.RolePrincipal object for the specified identity using the specified providerName and role information from the specified encryptedTicket.

Public Properties

[read-only]
CachedListChangedbool.

Gets a value indicating whether the list of role names cached with the System.Web.Security.RolePrincipal object has been modified.

[read-only]
CookiePathstring.

Gets the path for the cached role names cookie.

[read-only]
Expiredbool.

Gets a value indicating whether the roles cookie has expired.

[read-only]
ExpireDateDateTime.

Gets the date and time when the roles cookie will expire.

[read-only]
IdentitySystem.Security.Principal.IIdentity.

Gets the security identity for the current HTTP request.

[read-only]
IsRoleListCachedbool.

Gets a value indicating whether the list of roles for the user has been cached in a cookie.

[read-only]
IssueDateDateTime.

Gets the date and time that the roles cookie was issued.

[read-only]
ProviderNamestring.

Gets the name of the role provider that stores and retrieves role information for the user.

[read-only]
Versionint.

Gets the version number of the roles cookie.

Public Methods

GetRoles() : string[]

Gets a list of roles that the System.Web.Security.RolePrincipal is a member of.

IsInRole(string) : bool

Gets a value indicating whether the user represented by the System.Web.Security.RolePrincipal is in the specified role.

SetDirty()

Marks the cached role list as having been changed.

ToEncryptedTicket() : string

Returns the role information cached with the System.Web.Security.RolePrincipal object encrypted based on the Roles.CookieProtectionValue.