Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
HasErrors Property
Collapse the table of content
Expand the table of content

INotifyDataErrorInfo.HasErrors Property

.NET Framework 4.6 and 4.5

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

Namespace:  System.ComponentModel
Assemblies:   System (in System.dll)
  System.ObjectModel (in System.ObjectModel.dll)

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.

.NET Framework

Supported in: 4.6, 4.5

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
© 2015 Microsoft