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 이벤트를 처리하는 대리자입니다.

적용 대상