INotifyDataErrorInfo.HasErrors Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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


ReadOnly Property HasErrors As Boolean
bool HasErrors { get; }

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.

Version Information


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.