CurrentChangingEventManager::AddHandler Method

.NET Framework 4.5

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

Namespace:  System.ComponentModel
Assembly:  WindowsBase (in WindowsBase.dll)

public:
static void AddHandler(
	ICollectionView^ source, 
	EventHandler<CurrentChangingEventArgs^>^ handler
)

Parameters

source
Type: System.ComponentModel::ICollectionView

The source object that the raises the CurrentChanging event.

handler
Type: System::EventHandler<CurrentChangingEventArgs>

The delegate that handles the CurrentChanging event.

ExceptionCondition
ArgumentNullException

handler is nullptr.

Use this method to specify the event handler you want to use to subscribe to the CurrentChanging event.. When you use this method, your listener object does not need to implement the IWeakEventListener interface.

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft