Export (0) Print
Expand All

IDataErrorInfo.Error Property

Gets a message that describes any validation errors for the object.

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

string Error { get; }

Property Value

Type: System.String
The validation error on the object; or null or Empty, if no errors are present.

Use the Error property to get a single validation error message for the entire object. This message can represent multiple errors. If you want to represent multiple errors with individual messages, implement the INotifyDataErrorInfo interface instead.

For an example of an implementation of this property, see the IDataErrorInfo class overview.

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show:
© 2014 Microsoft