System
4.0.0.0
This interface enables data entity classes to implement custom validation rules and expose validation results asynchronously. This interface also supports custom error objects, multiple errors per property, cross-property errors, and entity-level errors. Cross-property errors are errors that affect multiple properties. You can associate these errors with one or all of the affected properties, or you can treat them as entity-level errors. Entity-level errors are errors that either affect multiple properties or affect the entire entity without affecting a particular property.
Defines members that data entity classes can implement to provide custom synchronous and asynchronous validation support.
Event
4.0.0.0
System.EventHandler<System.ComponentModel.DataErrorsChangedEventArgs>
The implementing class should raise this event on the user interface thread whenever the return value changes, even if the return value implements .
Occurs when the validation errors have changed for a property or for the entire entity.
Method
4.0.0.0
System.Collections.IEnumerable
This method returns an that can change as asynchronous validation rules finish processing. This enables the binding engine to automatically update the user interface validation feedback when errors are added, removed, or modified.
The return value can change to a different , or it can reuse a previously returned and change its contents. Any changes to the return value should raise the event, even if the return value implements .
Gets the validation errors for a specified property or for the entire entity.
The validation errors for the property or entity.
The name of the property to retrieve validation errors for; or null or , to retrieve entity-level errors.
Property
4.0.0.0
System.Boolean
To be added.
This property returns false if there are no known entity-level or property-level validation errors for the entity at the time it is accessed. However, some validation rules may still be running asynchronously as described for the method.
Gets a value that indicates whether the entity has validation errors.