CanExecuteChangedEventManager.RemoveHandler Method

.NET Framework 4.6 and 4.5

Removes the specified event handler from the specified source.

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

static member RemoveHandler : 
        source:ICommand * 
        handler:EventHandler<EventArgs> -> unit

Parameters

source
Type: System.Windows.Input.ICommand

The source object that the raises the CanExecuteChanged event.

handler
Type: System.EventHandler(EventArgs)

The delegate that handles the CanExecuteChanged event.

ExceptionCondition
ArgumentNullException

source is a null reference (Nothing in Visual Basic).

--or--

handler is a null reference (Nothing in Visual Basic).

.NET Framework

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