TouchEventArgs.InvokeEventHandler Method (Delegate, Object)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Invokes event handlers in a type-specific way, which can increase event system efficiency.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

override InvokeEventHandler : 
        genericHandler:Delegate *
        genericTarget:Object -> unit


Type: System.Delegate

The generic handler to call in a type-specific way.

Type: System.Object

The target on which to call the handler.

This implementation casts the generic handler as an EventHandler<'TEventArgs> of type TouchEventArgs and then invokes it. For more information about this implementation pattern and the reasons for it, see InvokeEventHandler and Routed Events Overview.

.NET Framework
Available since 4.0
Return to top