AddHandler Method

CurrentChangingEventManager.AddHandler Method (ICollectionView, EventHandler(Of CurrentChangingEventArgs))

.NET Framework (current version)
 

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

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

Public Shared Sub AddHandler (
	source As ICollectionView,
	handler As EventHandler(Of CurrentChangingEventArgs)
)

Parameters

source
Type: System.ComponentModel.ICollectionView

The source object that the raises the CurrentChanging event.

handler
Type: System.EventHandler(Of CurrentChangingEventArgs)

The delegate that handles the CurrentChanging event.

Exception Condition
ArgumentNullException

handler is null.

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
Available since 4.5
Return to top
Show:
© 2016 Microsoft