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
.
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
bool ResetProperty(
string propertyName,
bool triggerChangedEvent = true
)
Function ResetProperty (
propertyName As String,
Optional triggerChangedEvent As Boolean = true
) As Boolean
bool ResetProperty(
String^ propertyName,
bool triggerChangedEvent = true
)
abstract ResetProperty :
propertyName : string *
?triggerChangedEvent : bool
(* Defaults:
let _triggerChangedEvent = defaultArg triggerChangedEvent true
*)
-> bool
- 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: .
Boolean if property has been reset (it existed previously); otherwise,
.