AutomationElement.Inequality(AutomationElement, AutomationElement) 运算符

定义

返回一个值,该值指示指定的 AutomationElement 对象是否引用不同的用户界面 (UI) 元素。

public:
 static bool operator !=(System::Windows::Automation::AutomationElement ^ left, System::Windows::Automation::AutomationElement ^ right);
public static bool operator != (System.Windows.Automation.AutomationElement left, System.Windows.Automation.AutomationElement right);
static member op_Inequality : System.Windows.Automation.AutomationElement * System.Windows.Automation.AutomationElement -> bool
Public Shared Operator != (left As AutomationElement, right As AutomationElement) As Boolean

参数

left
AutomationElement

要比较的第一个 AutomationElement

right
AutomationElement

要比较的第二个 AutomationElement

返回

Boolean

true 如果两个对象引用不同的 UI 元素,则为否则 false

适用于

另请参阅