Error Property
Collapse the table of content
Expand the table of content

IDataErrorInfo.Error Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

'Declaration
ReadOnly Property Error As String

Property Value

Type: System.String
The validation error on the object; or Nothing 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft