HtmlWindow.Equality(HtmlWindow, HtmlWindow) Operator

Definition

Tests the two HtmlWindow objects for equality.

C#
public static bool operator ==(System.Windows.Forms.HtmlWindow left, System.Windows.Forms.HtmlWindow right);
C#
public static bool operator ==(System.Windows.Forms.HtmlWindow? left, System.Windows.Forms.HtmlWindow? right);

Parameters

left
HtmlWindow

The first HtmlWindow object.

right
HtmlWindow

The second HtmlWindow object.

Returns

true if both parameters are null, or if both elements have the same underlying COM interface; otherwise, false.

Remarks

The equality operator tests the IUnknown pointers of the underlying COM objects wrapped by the supplied HtmlWindow classes.

The equivalent method for this operator is HtmlWindow.Equals(Object)

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10