CollectionChangedEventManager.AddHandler(INotifyCollectionChanged, EventHandler<NotifyCollectionChangedEventArgs>) Méthode
Définition
Ajoute le gestionnaire d'événements spécifié, qui est appelé lorsque la source spécifiée déclenche l'événement CollectionChanged .Adds the specified event handler, which is called when specified source raises the CollectionChanged event.
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))
Paramètres
- source
- INotifyCollectionChanged
Objet source qui déclenche l'événement CollectionChanged.The source object that the raises the CollectionChanged event.
Délégué qui gère l'événement CollectionChanged.The delegate that handles the CollectionChanged event.