Info. Clear Cached Data Method
Refreshes cached culture-related information.
public: void ClearCachedData();
public void ClearCachedData ();
member this.ClearCachedData : unit -> unit
Public Sub ClearCachedData ()
Information, such as the default culture and format patterns, is cached the first time it is requested. That information can change during the life of the AppDomain, for example, when the user modifies the regional and language options portion of Control Panel. However, the CultureInfo class does not automatically detect changes in the system settings.
The ClearCachedData method clears the cache of CultureInfo objects created by GetCultureInfo and refreshes the information in the CurrentCulture, CurrentUICulture, and CurrentRegion properties, based on the current system settings.