CollectionChangedEventManager::AddHandler Method (INotifyCollectionChanged^, EventHandler<NotifyCollectionChangedEventArgs^>^)

.NET Framework (current version)
 

Adds the specified event handler, which is called when specified source raises the CollectionChanged event.

Namespace:   System.Collections.Specialized
Assembly:  WindowsBase (in WindowsBase.dll)

public:
static void AddHandler(
	INotifyCollectionChanged^ source,
	EventHandler<NotifyCollectionChangedEventArgs^>^ handler
)

Parameters

source
Type: System.Collections.Specialized::INotifyCollectionChanged^

The source object that the raises the CollectionChanged event.

handler
Type: System::EventHandler<NotifyCollectionChangedEventArgs^>^

The delegate that handles the CollectionChanged event.

.NET Framework
Available since 4.5
Return to top
Show: