ResXResourceManagerSaveResourceSet 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: 8.1.0
C#
public 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.
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.
Default value: .

Return Value

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

Implements

IExpandoResourceManagerSaveResourceSet(CultureInfo, Boolean, Boolean)

Exceptions

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

See Also