System.Web.Security.RolePrincipal.ToEncryptedTicket Method

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

Syntax

public string ToEncryptedTicket ()

Returns

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

Remarks

The value returned by the RolePrincipal.ToEncryptedTicket method is stored in the roles cookie when Roles.CacheRolesInCookie is true.

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0