Inequality Operator
Collapse the table of content
Expand the table of content

AutomationElement.Inequality Operator (AutomationElement, AutomationElement)


Returns a value indicating whether the specified AutomationElement objects refer to different user interface (UI) elements.

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

public static bool operator !=(
	AutomationElement left,
	AutomationElement right


Type: System.Windows.Automation.AutomationElement

The first AutomationElement to compare.

Type: System.Windows.Automation.AutomationElement

The second AutomationElement to compare.

Return Value

Type: System.Boolean

true if the two objects refer to different UI elements; otherwise false.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft