CollectionChangedEventManager.AddHandler 메서드

정의

지정된 소스가 이벤트를 발생시키는 경우 호출되는 지정된 이벤트 처리기를 추가합니다 CollectionChanged .

public:
 static void AddHandler(System::Collections::Specialized::INotifyCollectionChanged ^ source, EventHandler<System::Collections::Specialized::NotifyCollectionChangedEventArgs ^> ^ handler);
public static void AddHandler(System.Collections.Specialized.INotifyCollectionChanged source, EventHandler<System.Collections.Specialized.NotifyCollectionChangedEventArgs> handler);
static member AddHandler : System.Collections.Specialized.INotifyCollectionChanged * EventHandler<System.Collections.Specialized.NotifyCollectionChangedEventArgs> -> unit
Public Shared Sub AddHandler (source As INotifyCollectionChanged, handler As EventHandler(Of NotifyCollectionChangedEventArgs))

매개 변수

source
INotifyCollectionChanged

이벤트를 발생시키는 원본 개체입니다 CollectionChanged .

handler
EventHandler<NotifyCollectionChangedEventArgs>

이벤트를 처리하는 대리자입니다 CollectionChanged .

적용 대상