HasErrors Property
Collapse the table of content
Expand the table of content

INotifyDataErrorInfo.HasErrors Property

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

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

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

'Declaration
ReadOnly Property HasErrors As Boolean

Property Value

Type: System.Boolean
true if the entity currently has validation errors; otherwise, false.

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 GetErrors method.

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft