语言

HtmlElement.Inequality(HtmlElement, HtmlElement) 操作员

定义

比较两个 HtmlElement 对象是否相等。

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

参数

left
HtmlElement

第一个 HtmlElement。

right
HtmlElement

第二 HtmlElement个。

返回

true 只有一个元素 null,或者两个对象不相等;否则为 false。

注解

此运算符的等效方法是求反 HtmlElement.Equals

适用于