INotifyDataErrorInfo Interface

.NET Framework (current version)
 

Defines members that data entity classes can implement to provide custom synchronous and asynchronous validation support.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

Public Interface INotifyDataErrorInfo

NameDescription
System_CAPS_pubpropertyHasErrors

Gets a value that indicates whether the entity has validation errors.

NameDescription
System_CAPS_pubmethodGetErrors(String)

Gets the validation errors for a specified property or for the entire entity.

NameDescription
System_CAPS_pubeventErrorsChanged

Occurs when the validation errors have changed for a property or for the entire entity.

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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Windows Phone
Available since 8.1
Return to top
Show: