BindingExpressionBase.HasError 屬性

定義

取得值,這個值表示父繫結是否有驗證失敗規則。Gets a value that indicates whether the parent binding has a failed validation rule.

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

屬性值

如果父繫結有驗證失敗規則,則為 true,否則為 falsetrue if the parent binding has a failed validation rule; otherwise, false.

備註

這個屬性與HasValidationError屬性相同。This property is identical to the HasValidationError property.

適用於

另請參閱