ObservableObjectBaseResetProperty Method
Resets the property of the specified name, meaning, it will be removed from the underlying storage so the getter methods will return the default value again.
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
protected bool ResetProperty(
string propertyName,
bool invokeChangedEvent = true
)
Protected Function ResetProperty (
propertyName As String,
Optional invokeChangedEvent As Boolean = true
) As Boolean
protected:
bool ResetProperty(
String^ propertyName,
bool invokeChangedEvent = true
)
member ResetProperty :
propertyName : string *
?invokeChangedEvent : bool
(* Defaults:
let _invokeChangedEvent = defaultArg invokeChangedEvent true
*)
-> bool
- propertyName String
- The name of the property to reset.
- invokeChangedEvent Boolean (Optional)
- to allow raising the PropertyChanged event; otherwise, .
Boolean if property has been reset (it existed previously); otherwise,
.