Edit

Share via


CanExecuteChangedEventManager.RemoveHandler Method

Definition

Removes the specified event handler from the specified source.

public:
 static void RemoveHandler(System::Windows::Input::ICommand ^ source, EventHandler<EventArgs ^> ^ handler);
public static void RemoveHandler (System.Windows.Input.ICommand source, EventHandler<EventArgs> handler);
static member RemoveHandler : System.Windows.Input.ICommand * EventHandler<EventArgs> -> unit
Public Shared Sub RemoveHandler (source As ICommand, handler As EventHandler(Of EventArgs))

Parameters

source
ICommand

The source object that the raises the CanExecuteChanged event.

handler
EventHandler<EventArgs>

The delegate that handles the CanExecuteChanged event.

Exceptions

source is null.

-or-

handler is null.

Applies to