LanguageSettingsEnsureResourcesGenerated Method

Ensures that DynamicResourceManager instances with centralized settings load or generate the resource sets for the current DisplayLanguage. This method affects all DynamicResourceManager instances in the current application domain, whose UseLanguageSettings is .

Definition

Namespace: KGySoft
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.0.0-rc.1
C#
public static void EnsureResourcesGenerated()

Remarks

This method makes all centralized DynamicResourceManager instances in the current AppDomain (a DynamicResourceManager instance uses centralized settings when its UseLanguageSettings is ) load or generate the resource set for the current DisplayLanguage in memory. This makes possible that for the next auto save event (see also the DynamicResourceManagersAutoSave property) all such DynamicResourceManager instances will have a saved resource set for the current DisplayLanguage.

You can call also the SavePendingResources method to save the generated resource sets immediately.

When generating resources, the value of the DynamicResourceManagersAutoAppend is be respected.

See Also