|
OpenTAP 9.31
API Reference
|
Runtime property value error-checking system. Can be used to validate an object before run or to display messages through a GUI. More...
Public Member Functions | |
| void | OnPropertyChanged (string propertyName) |
| Triggers the PropertyChanged event. More... | |
Protected Member Functions | |
| virtual string | GetError (string propertyName=null) |
| Return the error for a given property | |
| void | ThrowOnValidationError (bool ignoreDisabledProperties) |
| Checks all validation rules on this object (Rules) and throws an AggregateException on errors. More... | |
Properties | |
| ValidationRuleCollection | Rules [get] |
| All the validation rules. Add new rules to this in order to get runtime value validation. | |
| string | Error [get] |
| Gets the error messages for each invalid rule and joins them with a newline. | |
Properties inherited from OpenTap.IValidatingObject | |
| ValidationRuleCollection | Rules [get] |
| A collection of all the currently defined validation rules. Add new rules here in order to get runtime value validation. | |
Events | |
| PropertyChangedEventHandler | PropertyChanged |
| Standard PropertyChanged event object. | |
Runtime property value error-checking system. Can be used to validate an object before run or to display messages through a GUI.
Only works on properties, not fields. The functionality is implemented primarily with a GUI in mind.
|
inline |
Triggers the PropertyChanged event.
| propertyName | string name of which property has been changed. |
Implements OpenTap.IValidatingObject.
|
inlineprotected |
Checks all validation rules on this object (Rules) and throws an AggregateException on errors.
| ignoreDisabledProperties | If true, ignores Rules related to properties that are disabled or hidden as a result of EnabledIfAttribute or Enabled<T>. |
| AggregateException | Thrown when any Rules on this object are invalid. This exception contains an ArgumentException for each invalid setting. |
OpenTAP 9.31 API built Fri Oct 17 2025 07:12:37