IInputElement.AddHandler(RoutedEvent, Delegate) 方法

定义

将特定的路由事件的路由事件处理程序添加到元素。Adds a routed event handler for a specific routed event to an element.

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

参数

routedEvent
RoutedEvent

要处理的路由事件的标识符。The identifier for the routed event that is being handled.

handler
Delegate

对处理程序实现的引用。A reference to the handler implementation.

注解

此接口不用于公共实现。This interface is not intended for public implementation. 有关详细信息, 请参阅界面的IInputElement "备注"。For more information, see remarks for the IInputElement interface.

适用于

另请参阅