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

屬性值

true 表示包含 NotifyDataErrorValidationRule,否則為 falsetrue to include the NotifyDataErrorValidationRule; otherwise, false. 預設為 trueThe default is true.

備註

ValidatesOnNotifyDataErrortrue時,系結會檢查並報告由INotifyDataErrorInfo執行之資料來源所引發的錯誤。When ValidatesOnNotifyDataError is true, the binding checks for and reports errors that are raised by a data source that implements INotifyDataErrorInfo.

適用於