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.

Automation::RemoveAutomationEventHandler Method (AutomationEvent^, AutomationElement^, AutomationEventHandler^)

 

Removes the specified UI Automation event handler.

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

public:
static void RemoveAutomationEventHandler(
	AutomationEvent^ eventId,
	AutomationElement^ element,
	AutomationEventHandler^ eventHandler
)

Parameters

eventId
Type: System.Windows.Automation::AutomationEvent^

An event identifier.

element
Type: System.Windows.Automation::AutomationElement^

The UI Automation element on which to remove the event handler.

eventHandler
Type: System.Windows.Automation::AutomationEventHandler^

The handler method that was passed to AddAutomationEventHandler for the specified event identifier and UI Automation element.

The following example code shows an event handler being added and removed.

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