CollectionChangedEventManager.AddHandler Methode

Definition

Fügt den angegebenen Ereignishandler hinzu, der aufgerufen wird, wenn die angegebene Quelle das CollectionChanged-Ereignis auslöst.

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))

Parameter

source
INotifyCollectionChanged

Das Quellobjekt, das das CollectionChanged-Ereignis auslöst.

handler
EventHandler<NotifyCollectionChangedEventArgs>

Der Delegat. der das CollectionChanged-Ereignis behandelt.

Gilt für: