System.Web.Security.RolePrincipal.CachedListChanged Property

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

Syntax

public bool CachedListChanged { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The RolePrincipal.CachedListChanged property will return true after role names have been retrieved from the default role Roles.Provider and added to the cache by the RolePrincipal.GetRoles method, or when the RolePrincipal.IsInRole(string) method calls the RoleProvider.IsUserInRole(string, string) method of the default role provider and then receives a response of true, resulting in the role name passed to the RolePrincipal.IsInRole(string) method being added to the cache.

The RolePrincipal.CachedListChanged property will also return true if Roles.CookieSlidingExpiration is set to true and the RolePrincipal.ExpireDate has passed, resulting in a new RolePrincipal.ExpireDate being set.

Requirements

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