INotifyDataErrorInfo.ErrorsChanged 事件

定义

当验证错误针对属性或整个实体更改时发生。

public:
 event EventHandler<System::ComponentModel::DataErrorsChangedEventArgs ^> ^ ErrorsChanged;
event EventHandler<System.ComponentModel.DataErrorsChangedEventArgs> ErrorsChanged;
event EventHandler<System.ComponentModel.DataErrorsChangedEventArgs>? ErrorsChanged;
member this.ErrorsChanged : EventHandler<System.ComponentModel.DataErrorsChangedEventArgs> 
Event ErrorsChanged As EventHandler(Of DataErrorsChangedEventArgs) 

事件类型

注解

每当 GetErrors 返回值发生更改时,实现类应在用户界面线程上引发此事件,即使返回值实现了 INotifyCollectionChanged

适用于