Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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 following tables list the members exposed by the ValidationError type.

  Name Description
Public method ValidationError Overloaded. Initializes a new instance of the ValidationError class.
Top
  Name Description
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
(see also Protected Methods )
  Name Description
Public method Equals  Overloaded. Determines whether two Object instances are equal. (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)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top
  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.