Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

public delegate void AutomationEventHandler(
	Object^ sender,
	AutomationEventArgs^ e
)

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:
© 2017 Microsoft