CanExecuteChangedEventManager.AddHandler Method

.NET Framework 4.5

Adds the specified delegate as an event handler of the specified source.

Namespace:  System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

'Declaration
Public Shared Sub AddHandler ( _
	source As ICommand, _
	handler As EventHandler(Of EventArgs) _
)

Parameters

source
Type: System.Windows.Input.ICommand

The source object that the raises the CanExecuteChanged event.

handler
Type: System.EventHandler(Of EventArgs)

The delegate that handles the CanExecuteChanged event.

ExceptionCondition
ArgumentNullException

source is Nothing.

--or--

handler is Nothing.

.NET Framework

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