System.Windows.Forms.HtmlElement.op_Equality Method

Compares two elements for equality.

Syntax

public static bool operator== (HtmlElement left, HtmlElement right)

Parameters

left
The first System.Windows.Forms.HtmlElement.
right
The second System.Windows.Forms.HtmlElement.

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 System.Windows.Forms.HtmlElement classes.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0