IPersistableObjectReplaceProperties Method

Replaces the properties of the IPersistableObject with the provided new properties. If contains less entries than the actually stored entries, then the difference will be removed from the IPersistableObject.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
void ReplaceProperties(
	IDictionary<string, Object?> properties,
	bool triggerChangedEvent = true
)

Parameters

properties  IDictionaryString, Object
The new properties to set.
triggerChangedEvent  Boolean  (Optional)
to allow raising the PropertyChanged event; otherwise, . This parameter is optional.
Default value: .

Exceptions

InvalidOperationExceptionA property cannot be set.

See Also