KGy SOFT

HybridResourceManagerSaveResourceSet Method

KGy SOFT Core Libraries Help
Saves the resource set of a particular culture if it has been already loaded.

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

public virtual bool SaveResourceSet(
	CultureInfo culture,
	bool force = false,
	bool compatibleFormat = false
)

Parameters

culture
Type: System.GlobalizationCultureInfo
The culture of the resource set to save.
force (Optional)
Type: SystemBoolean
 to save the resource set even if it has not been modified;  to save it only if it has been modified. This parameter is optional.
Default value: .
compatibleFormat (Optional)
Type: SystemBoolean
If set to , the result .resx file can be read by a System.Resources.ResXResourceReader instance and the Visual Studio Resource Editor. If set to , the result .resx is 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 the resource set of the specified culture has been saved; otherwise, .

Implements

IExpandoResourceManagerSaveResourceSet(CultureInfo, Boolean, Boolean)
Exceptions

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

Reference