AutomationEventHandler Delegate

 

Represents the method implemented by the UI Automation client application to handle an event raised by a UI Automation provider.

Namespace:   System.Windows.Automation
Assembly:  UIAutomationTypes (in UIAutomationTypes.dll)

type AutomationEventHandler = 
    delegate of 
        sender:Object *
        e:AutomationEventArgs -> unit

Parameters

sender
Type: System.Object

The object that raised the event.

e
Type: System.Windows.Automation.AutomationEventArgs

Information about the event.

Use an AutomationEventHandler delegate to specify the method that is called by a client to handle UI Automation events.

The AutomationElement represented by sender might not have any cached properties or patterns, depending on whether the application subscribed to this event while a CacheRequest was active.

The following example shows how to subscribe to and handle an event.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: