LanguageSettingsSavePendingResources Method

Ensures that DynamicResourceManager instances with centralized settings save all pending changes. 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: 10.0.0
C#
public static void SavePendingResources()

Remarks

When using this overload, the format of the saved .resx files is determined by the CompatibleFormat property of each DynamicResourceManager instance. To force a specific format for all DynamicResourceManager instances, use the SavePendingResources(Boolean) overload instead.

This method forces all DynamicResourceManager instances with centralized settings to save possibly changed or generated resources independently of the value of the DynamicResourceManagersAutoSave property.

If this method is called right after the EnsureResourcesGenerated method, then we can ensure that resource files are generated for the currently set DisplayLanguage.

See Also