Collection of validation rules. Simplifies adding new rules by abstracting the use of ValidationRule objects.
More...
Inherits Collection< ValidationRule >.
Collection of validation rules. Simplifies adding new rules by abstracting the use of ValidationRule objects.
◆ Add() [1/5]
Adds a new rule to the collection.
- Parameters
-
isValid | |
errorDelegate | |
propertyNames | Names of the properties it affects. |
◆ Add() [2/5]
Adds a new rule to the collection.
- Parameters
-
isValid | |
errorDelegate | |
propertyName | |
◆ Add() [3/5]
This overload of ValidationRuleCollection.Add should not be used. This placeholder method is added to provide a warning.
- Parameters
-
isValid | Rule checking function. |
errorMessage | Error if rule checking function returns false. |
◆ Add() [4/5]
void OpenTap.ValidationRuleCollection.Add |
( |
IsValidDelegateDefinition |
isValid, |
|
|
string |
errorMessage, |
|
|
params string[] |
propertyNames |
|
) |
| |
|
inline |
Add a new rule to the collection for multiple properties. Internally a new rule is created for each property.
- Parameters
-
isValid | Rule checking function. |
errorMessage | Error if rule checking function returns false. |
propertyNames | Names of the properties it affects. |
◆ Add() [5/5]
Add a new rule to the collection.
- Parameters
-
isValid | Rule checking function. |
errorMessage | Error if rule checking function returns false. |
propertyName | Name of the property it affects. |