HybridResourceManagerSaveResourceSet Method

Saves the resource set of a particular culture if it has been already loaded.

Definition

Namespace: KGySoft.Resources
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public virtual bool SaveResourceSet(
	CultureInfo culture,
	bool force = false,
	bool compatibleFormat = false
)

Parameters

culture  CultureInfo
The culture of the resource set to save.
force  Boolean  (Optional)
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  Boolean  (Optional)
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

Boolean
if the resource set of the specified culture has been saved; otherwise, .

Implements

IExpandoResourceManagerSaveResourceSet(CultureInfo, Boolean, Boolean)

Exceptions

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

See Also