Class ValidationError
An error in validation -- either created by an ValidationRule or explicitly through MarkInvalid on BindingExpression or MultiBindingExpression.
public class ValidationError
- Inheritance
-
ValidationError
Constructors
- ValidationError(ValidationRule, object)
ValidationError ctor
rule that detected validation error BindingExpression for which validation failed
- ValidationError(ValidationRule, object, object, Exception)
ValidationError ctor
Properties
- BindingInError
The BindingExpression or MultiBindingExpression that was marked invalid either explicitly, or while validating the ValidationRules collection.
- ErrorContent
Some additional context for the ValidationError, such as a string describing the error.
- Exception
If the ValidationError is the result of some Exception, this will be a reference to that exception.
- RuleInError
If the validationError is as the result of an ValidationRule, then this is the reference to that ValidationRule.