BindingGroup.ValidatesOnNotifyDataError 属性

定义

获取或设置一个值,该值指示是否包含 NotifyDataErrorValidationRuleGets or sets a value that indicates whether to include the NotifyDataErrorValidationRule.

public:
 property bool ValidatesOnNotifyDataError { bool get(); void set(bool value); };
public bool ValidatesOnNotifyDataError { get; set; }
member this.ValidatesOnNotifyDataError : bool with get, set
Public Property ValidatesOnNotifyDataError As Boolean

属性值

Boolean

如果包含 NotifyDataErrorValidationRule,则为 true;否则为 falsetrue to include the NotifyDataErrorValidationRule; otherwise, false. 默认值为 trueThe default is true.

注解

ValidatesOnNotifyDataError 为时 true ,绑定将检查并报告实现的数据源引发的错误 INotifyDataErrorInfoWhen ValidatesOnNotifyDataError is true, the binding checks for and reports errors that are raised by a data source that implements INotifyDataErrorInfo.

适用于