ErrorsChangedEventManager.AddHandler(INotifyDataErrorInfo, EventHandler<DataErrorsChangedEventArgs>) ErrorsChangedEventManager.AddHandler(INotifyDataErrorInfo, EventHandler<DataErrorsChangedEventArgs>) ErrorsChangedEventManager.AddHandler(INotifyDataErrorInfo, EventHandler<DataErrorsChangedEventArgs>) ErrorsChangedEventManager.AddHandler(INotifyDataErrorInfo, EventHandler<DataErrorsChangedEventArgs>) Method

정의

지정된 소스가 ErrorsChanged 이벤트를 발생시킬 때 호출되는 지정된 이벤트 처리기를 추가합니다.Adds the specified event handler, which is called when specified source raises the ErrorsChanged event.

public:
 static void AddHandler(System::ComponentModel::INotifyDataErrorInfo ^ source, EventHandler<System::ComponentModel::DataErrorsChangedEventArgs ^> ^ handler);
public static void AddHandler (System.ComponentModel.INotifyDataErrorInfo source, EventHandler<System.ComponentModel.DataErrorsChangedEventArgs> handler);
static member AddHandler : System.ComponentModel.INotifyDataErrorInfo * EventHandler<System.ComponentModel.DataErrorsChangedEventArgs> -> unit
Public Shared Sub AddHandler (source As INotifyDataErrorInfo, handler As EventHandler(Of DataErrorsChangedEventArgs))

매개 변수

source
INotifyDataErrorInfo INotifyDataErrorInfo INotifyDataErrorInfo INotifyDataErrorInfo

ErrorsChanged 이벤트를 발생하는 소스 개체입니다.The source object that raises the ErrorsChanged event.

handler
EventHandler<DataErrorsChangedEventArgs>

ErrorsChanged 이벤트를 처리하는 대리자입니다.The delegate that handles the ErrorsChanged event.

예외

적용 대상