HtmlElement.Equality(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 ( = ) : 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

返回

如果两个参数都为 null,或是两个元素具有相同的基础 COM 接口,则为 true;否则为 false

注解

相等运算符测试 IUnknown 由提供的 HtmlElement 类包装的基础 COM 对象的指针。

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

适用于