Automation.RemoveStructureChangedEventHandler Method (AutomationElement, StructureChangedEventHandler)

 
System_CAPS_noteNote

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

Removes the specified structure-changed event handler.

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

public static void RemoveStructureChangedEventHandler(
	AutomationElement element,
	StructureChangedEventHandler eventHandler
)

Parameters

element
Type: System.Windows.Automation.AutomationElement

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

eventHandler
Type: System.Windows.Automation.StructureChangedEventHandler

A handler method that was passed to AddStructureChangedEventHandler for the specified UI Automation element.

.NET Framework
Available since 3.0
Return to top
Show: