LocalizationHelperReleaseAllScopedResources Method

Releases the loaded resource sets of all scoped resources. Resource sets will be reloaded on the next request. Can be useful after calling GetResourceSet if the result was edited and the changes should be discarded.

Definition

Namespace: KGySoft.WinForms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static void ReleaseAllScopedResources()

Remarks

This method may have no effect, if an auto save operation occurred since the last GetResourceSet call. Auto save occurs when LanguageSettings.DisplayLanguage changes or when localization is requested for many different LocalizationContexts in a row, and the resources of some contexts are dropped from the internal cache.

See Also