Share via


CollectionChangedEventManager.AddHandler Metodo

Definizione

Aggiunge il gestore eventi specificato, che viene chiamato quando l'origine specificata genera l'evento 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))

Parametri

source
INotifyCollectionChanged

Oggetto di sorgente che genera l'evento CollectionChanged.

handler
EventHandler<NotifyCollectionChangedEventArgs>

Delegato che gestisce l'evento CollectionChanged.

Si applica a