AutomationElement.Equals(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈