Clears the cached role information and resets the cache time-out period.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
The method removes all role information from the local cache and causes the cache to expire. After you call this method, your next call to the GetRolesForUser or IsUserInRole method will retrieve role information from the configured role service instead of the local cache.
You can use this method to enable users to refresh the roles cache when their role has changed but the cache has not yet expired. For information about how to set the roles cache time-out interval, see How to: Configure Client Application Services.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.