Refreshes cached culture-related information.
[Visual Basic] Public Sub ClearCachedData() [C#] public void ClearCachedData(); [C++] public: void ClearCachedData(); [JScript] public function ClearCachedData();
Information, such as the default culture and format patterns, is cached the first time it is requested. However, that information can change during the life of the AppDomain, for example, when the user modifies Regional and Language Options (or Regional Options or Regional Settings) in Control Panel in Windows. The CultureInfo class does not detect changes in the system settings automatically. The ClearCachedData method refreshes the information in CurrentCulture, CurrentUICulture, and CurrentRegion, based on the current system settings. This method does not refresh the information in Thread.CurrentCulture for existing threads. However, future threads will have the new CultureInfo property values.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family