Export (0) Print
Expand All

ValidationError Members

Represents a validation error that is created either by the binding engine when a ValidationRule reports a validation error, or through the MarkInvalid method explicitly.

The ValidationError type exposes the following members.

  NameDescription
Public method ValidationError Overloaded. Initializes a new instance of the ValidationError class.
Top

  NameDescription
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public property BindingInError Gets the BindingExpression or MultiBindingExpression object of this ValidationError. The object is either marked invalid explicitly or has a failed validation rule.
Public property ErrorContent Gets or sets an object that provides additional context for this ValidationError, such as a string describing the error.
Public property Exception Gets or sets the Exception object that was the cause of this ValidationError, if the error is the result of an exception.
Public property RuleInError Gets or sets the ValidationRule object that was the cause of this ValidationError, if the error is the result of a validation rule.
Top

Community Additions

ADD
Show:
© 2014 Microsoft