AutomationElement.Equals(Object) Method

Definition

Determines whether the specified AutomationElement has the same value as this AutomationElement.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

Parameters

obj
Object

An AutomationElement to compare.

Returns

true if the specified AutomationElement is equal to this AutomationElement;otherwise false.

Remarks

Two elements that compare as equal may contain different cached information from different points in time. The equality check only tests that the AutomationElement objects refer to the same underlying user interface element; that is, that they have the same run-time identifier.

This method is equivalent to the equality operator, which also compare run-time identifiers.

Applies to

See also