OpenTAP 9.25
API Reference
Public Member Functions | Properties | List of all members
OpenTap.ValidationRule Class Reference

Validates settings at runtime. A validation rule is attached to an object of type ValidatingObject and is used to validate the property value of that object. Also see ValidatingObject.Rules More...

Inheritance diagram for OpenTap.ValidationRule:
OpenTap.DelegateValidationRule

Public Member Functions

 ValidationRule (IsValidDelegateDefinition isValid, string errorMessage, string propertyName)
 

Properties

string PropertyName [getset]
 Name of the property affected by this rule.
 
virtual string ErrorMessage [getset]
 Error message to use if the property does not follow the rule.

 
IsValidDelegateDefinition IsValid [getset]
 Rule function following the signature () -> bool.

 

Detailed Description

Validates settings at runtime. A validation rule is attached to an object of type ValidatingObject and is used to validate the property value of that object. Also see ValidatingObject.Rules

Constructor & Destructor Documentation

◆ ValidationRule()

OpenTap.ValidationRule.ValidationRule ( IsValidDelegateDefinition  isValid,
string  errorMessage,
string  propertyName 
)
inline

Parameters
isValidProperty IsValid
errorMessageProperty ErrorMessage-
propertyNameProperty PropertyName

OpenTAP 9.25 API built Tue Aug 6 2024 07:49:25