AutomationElement.Inequality(AutomationElement, AutomationElement) 運算子

定義

傳回值,這個值表示指定的 AutomationElement 物件是否參考不同的使用者介面 (UI) 元素。Returns a value indicating whether the specified AutomationElement objects refer to different user interface (UI) elements.

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

要比較的第一個 AutomationElementThe first AutomationElement to compare.

right
AutomationElement

要比較的第二個 AutomationElementThe second AutomationElement to compare.

傳回

Boolean

true 如果兩個物件參考不同的 UI 元素;否則為 falsetrue if the two objects refer to different UI elements; otherwise false.

適用於

另請參閱