IPersistableObjectSetProperties Method

Sets the provided properties in the IPersistableObject. The new set of properties will be merged with the existing ones.

Definition

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

Parameters

properties  IDictionaryString, Object
The 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