CanExecuteChangedEventManager::RemoveHandler Method (ICommand^, EventHandler<EventArgs^>^)

.NET Framework (current version)
 

Removes the specified event handler from the specified source.

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

public:
static void RemoveHandler(
	ICommand^ source,
	EventHandler<EventArgs^>^ handler
)

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.

Exception Condition
ArgumentNullException

source is null.

--or--

handler is null.

.NET Framework
Available since 4.5
Return to top
Show: