InputEventArgs.InvokeEventHandler(Delegate, Object) InputEventArgs.InvokeEventHandler(Delegate, Object) InputEventArgs.InvokeEventHandler(Delegate, Object) InputEventArgs.InvokeEventHandler(Delegate, Object) Method

定義

以型別專屬的方式叫用事件處理常式,這樣做能夠提升事件系統的效率。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 Delegate Delegate Delegate

以特定型別的方式呼叫的泛型處理常式。The generic handler to call in a type-specific way.

genericTarget
Object Object Object Object

對其呼叫處理常式的目標。The target to call the handler on.

備註

這個實作為會將泛型處理常式InputEventHandler轉換為, 然後再叫用它。This implementation casts the generic handler as an InputEventHandler and then invokes it. 如需這種執行模式和其原因的詳細資訊, InvokeEventHandler請參閱和路由事件總覽For details on this implementation pattern and the reasons for it, see InvokeEventHandler and Routed Events Overview.

適用於