Compartilhar via


CollectionChangedEventManager.AddHandler Método

Definição

Adiciona o manipulador de eventos especificado, que é chamado quando a origem especificada gera o 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))

Parâmetros

source
INotifyCollectionChanged

O objeto de origem que gera o evento CollectionChanged.

handler
EventHandler<NotifyCollectionChangedEventArgs>

O delegado que manipula o evento CollectionChanged.

Aplica-se a