ErrorsChangedEventManager::AddHandler Method (INotifyDataErrorInfo^, EventHandler<DataErrorsChangedEventArgs^>^)
.NET Framework (current version)
Adds the specified event handler, which is called when specified source raises the ErrorsChanged event.
Assembly: WindowsBase (in WindowsBase.dll)
public: static void AddHandler( INotifyDataErrorInfo^ source, EventHandler<DataErrorsChangedEventArgs^>^ handler )
Parameters
- source
-
Type:
System.ComponentModel::INotifyDataErrorInfo^
The source object that raises the ErrorsChanged event.
- handler
-
Type:
System::EventHandler<DataErrorsChangedEventArgs^>^
The delegate that handles the ErrorsChanged event.
| Exception | Condition |
|---|---|
| ArgumentNullException | handler is null. |
.NET Framework
Available since 4.5
Available since 4.5
Show: