Aracılığıyla paylaş


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)

Syntax

'Declaration
ReadOnly Property HasErrors As Boolean
bool HasErrors { get; }

Property Value

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

Remarks

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.

Examples

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

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.