Share via


CanExecuteChangedEventManager.RemoveHandler メソッド

定義

指定したソースから、指定したイベント ハンドラーを削除します。

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))

パラメーター

source
ICommand

CanExecuteChanged イベントを発生させるソース オブジェクト。

handler
EventHandler<EventArgs>

CanExecuteChanged イベントを処理するデリゲート。

例外

sourcenullです。

または

handlernull です。

適用対象