INotifyDataErrorInfo.HasErrors Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.ComponentModel
Assembly:  System (in System.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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Windows Phone
Available since 8.1
Return to top
Show: