CollectionChangedEventManager.AddHandler Método

Definición

Agrega el controlador de eventos especificado, que se llama cuando el origen especificado provoca el 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

Objeto de origen que provoca el evento CollectionChanged.

handler
EventHandler<NotifyCollectionChangedEventArgs>

Delegado que controla el evento CollectionChanged.

Se aplica a