IInputElement.RemoveHandler(RoutedEvent, Delegate) 方法

定義

移除這個項目中所指定路由事件處理常式的所有執行個體。Removes all instances of the specified routed event handler from this element.

public:
 void RemoveHandler(System::Windows::RoutedEvent ^ routedEvent, Delegate ^ handler);
public void RemoveHandler (System.Windows.RoutedEvent routedEvent, Delegate handler);
abstract member RemoveHandler : System.Windows.RoutedEvent * Delegate -> unit

參數

routedEvent
RoutedEvent

附加處理常式之路由事件的識別項。Identifier of the routed event for which the handler is attached.

handler
Delegate

要從這個項目的事件處理常式集合中移除的特定處理常式實作。The specific handler implementation to remove from this element's event handler collection.

備註

此介面不適用於公用的執行。This interface is not intended for public implementation. 如需詳細資訊, 請參閱IInputElement介面的備註。For more information, see remarks for the IInputElement interface.

適用於

另請參閱