Επεξεργασία

Κοινή χρήση μέσω


CultureInfo.ClearCachedData Method

Definition

Refreshes cached culture-related information.

public:
 void ClearCachedData();
public void ClearCachedData ();
member this.ClearCachedData : unit -> unit
Public Sub ClearCachedData ()

Remarks

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.

The ClearCachedData method does not refresh the information in the Thread.CurrentCulture property for existing threads. However, future threads will have any new CultureInfo property values.

Applies to