HtmlWindow.Equality(HtmlWindow, HtmlWindow) 运算符

定义

测试两个 HtmlWindow 对象是否相等。

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

参数

left
HtmlWindow

第一个 HtmlWindow 对象。

right
HtmlWindow

第二个 HtmlWindow 对象。

返回

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

注解

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

此运算符的等效方法是 HtmlWindow.Equals(Object)

适用于