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.
This documentation is archived and is not being maintained.
Automation Class
.NET Framework (current version)
Contains methods and fields for UI Automation client applications.
Namespace:
System.Windows.Automation Assembly:
UIAutomationClient (in UIAutomationClient.dll)
Public NotInheritable Class Automation
Name Description AddAutomationEventHandler(AutomationEvent, AutomationElement, TreeScope, AutomationEventHandler) Registers a method that handles UI Automation events.
AddAutomationFocusChangedEventHandler(AutomationFocusChangedEventHandler) Registers a method that will handle focus-changed events.
AddAutomationPropertyChangedEventHandler(AutomationElement, TreeScope, AutomationPropertyChangedEventHandler, AutomationProperty()) Registers a method that will handle property-changed events.
AddStructureChangedEventHandler(AutomationElement, TreeScope, StructureChangedEventHandler) Registers the method that will handle structure-changed events.
Compare(AutomationElement, AutomationElement) Compares two UI Automation elements, returning true if both refer to the same UI element.
Compare(Int32(), Int32()) Compares two integer arrays containing run-time identifiers (IDs) to determine whether their content is the same.
PatternName(AutomationPattern) Retrieves the name of the specified control pattern.
PropertyName(AutomationProperty) Retrieves the name of the specified UI Automation property.
RemoveAllEventHandlers() Removes all registered UI Automation event handlers.
RemoveAutomationEventHandler(AutomationEvent, AutomationElement, AutomationEventHandler) Removes the specified UI Automation event handler.
RemoveAutomationFocusChangedEventHandler(AutomationFocusChangedEventHandler) Removes the specified focus-changed event handler.
RemoveAutomationPropertyChangedEventHandler(AutomationElement, AutomationPropertyChangedEventHandler) Removes the specified property-changed event handler.
RemoveStructureChangedEventHandler(AutomationElement, StructureChangedEventHandler) Removes the specified structure-changed event handler.
.NET Framework
Available since 3.0
Any public static (
Shared
in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Return to top