TextCompositionEventArgs.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.

備註

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

適用於