Share via


INotifyDataErrorInfo.ErrorsChanged 事件

定义

当属性或实体的验证错误发生更改时发生。

// Register
event_token ErrorsChanged(EventHandler<DataErrorsChangedEventArgs> const& handler) const;

// Revoke with event_token
void ErrorsChanged(event_token const* cookie) const;

// Revoke with event_revoker
INotifyDataErrorInfo::ErrorsChanged_revoker ErrorsChanged(auto_revoke_t, EventHandler<DataErrorsChangedEventArgs> const& handler) const;
event System.EventHandler<DataErrorsChangedEventArgs> ErrorsChanged;
function onErrorsChanged(eventArgs) { /* Your code */ }
iNotifyDataErrorInfo.addEventListener("errorschanged", onErrorsChanged);
iNotifyDataErrorInfo.removeEventListener("errorschanged", onErrorsChanged);
- or -
iNotifyDataErrorInfo.onerrorschanged = onErrorsChanged;
Event ErrorsChanged As EventHandler(Of DataErrorsChangedEventArgs) 

事件类型

适用于

另请参阅