KGy SOFT

HybridResourceManagerSaveAllResources Method

KGy SOFT Core Libraries Help
Saves all already loaded resources.

Namespace:  KGySoft.Resources
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.4.0
Syntax

public virtual bool SaveAllResources(
	bool force = false,
	bool compatibleFormat = false
)

Parameters

force (Optional)
Type: SystemBoolean
 to save all of the already loaded resource sets regardless if they have been modified;  to save only the modified resource sets. This parameter is optional.
Default value: .
compatibleFormat (Optional)
Type: SystemBoolean
If set to , the result .resx files can be read by a System.Resources.ResXResourceReader instance and the Visual Studio Resource Editor. If set to , the result .resx files are often shorter, and the values can be deserialized with better accuracy (see the remarks at ResXResourceWriter), but the result can be read only by the ResXResourceReader class. This parameter is optional.
Default value: .

Return Value

Type: Boolean
 if at least one resource set has been saved; otherwise, .

Implements

IExpandoResourceManagerSaveAllResources(Boolean, Boolean)
Exceptions

ExceptionCondition
ObjectDisposedExceptionThe HybridResourceManager is already disposed.
IOExceptionA resource set could not be saved.
See Also

Reference