System.Web.Security.RolePrincipal: Method Members

The methods of System.Web.Security.RolePrincipal are listed below. For a list of all members, see the RolePrincipal Members list.

See Also: Inherited members from System.Object

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.