StylusDownEventArgs.InvokeEventHandler(Delegate, Object) 方法

定义

以特定于类型的方式调用事件处理程序,这样做可以提高事件系统效率。Invokes event handlers in a type-specific way, which can increase event system efficiency.

protected:
 override void InvokeEventHandler(Delegate ^ genericHandler, System::Object ^ genericTarget);
protected override void InvokeEventHandler (Delegate genericHandler, object genericTarget);
override this.InvokeEventHandler : Delegate * obj -> unit
Protected Overrides Sub InvokeEventHandler (genericHandler As Delegate, genericTarget As Object)

参数

genericHandler
Delegate

以特定于类型的方式调用的一般处理程序。The generic handler to call in a type-specific way.

genericTarget
Object

要对其调用处理程序的目标。The target to call the handler on.

注解

此实现将泛型处理程序强制转换StylusDownEventHandler为, 然后调用它。This implementation casts the generic handler as a StylusDownEventHandler and then invokes it. 有关此实现模式及其原因的详细信息, 请参阅InvokeEventHandler路由事件概述For details on this implementation pattern and the reasons for it, see InvokeEventHandler and Routed Events Overview.

适用于