BindingGroup.HasValidationError 属性

定义

获取一个值,该值指示 BindingGroup 是否具有一个失败的验证规则。Gets a value that indicates whether the BindingGroup has a failed validation rule.

public:
 property bool HasValidationError { bool get(); };
public bool HasValidationError { get; }
member this.HasValidationError : bool
Public ReadOnly Property HasValidationError As Boolean

属性值

Boolean

如果 BindingGroup 具有一个失败的验证规则,则为 true;否则为 falsetrue if the BindingGroup has a failed validation rule; otherwise, false.

适用于