IPersistableObjectResetProperty Method

Resets the property of the specified propertyName, meaning, it will be removed from the underlying storage so the property getters will return the default value again and TryGetPropertyValue will return .

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
bool ResetProperty(
	string propertyName,
	bool triggerChangedEvent = true
)

Parameters

propertyName  String
The name of the property to reset.
triggerChangedEvent  Boolean  (Optional)
to allow raising the PropertyChanged event; otherwise, . This parameter is optional.
Default value: .

Return Value

Boolean
if property has been reset (it existed previously); otherwise, .

See Also