RolePrincipal::CachedListChanged Property
Gets a value indicating whether the list of role names cached with the RolePrincipal object has been modified.
Assembly: System.Web (in System.Web.dll)
Property Value
Type: System::Booleantrue if the list of role names cached with the RolePrincipal object has been modified; otherwise, false.
The CachedListChanged property will return true after role names have been retrieved from the default role Provider and added to the cache by the GetRoles method, or when the IsInRole method calls the IsUserInRole method of the default role provider and then receives a response of true, resulting in the role name passed to the IsInRole method being added to the cache.
The CachedListChanged property will also return true if CookieSlidingExpiration is set to true and the ExpireDate has passed, resulting in a new ExpireDate being set.
Available since 2.0