Udostępnij za pośrednictwem


INotifyDataErrorInfo.HasErrors Property

Definition

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

public:
 property bool HasErrors { bool get(); };
bool HasErrors();
public bool HasErrors { get; }
var boolean = iNotifyDataErrorInfo.hasErrors;
Public ReadOnly Property HasErrors As Boolean

Property Value

Boolean

bool

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.

Applies to