IUIAutomationElement7::FindAllWithOptions 方法 (uiautomationclient.h)
按指定顺序查找所有匹配元素。
语法
HRESULT FindAllWithOptions(
TreeScope scope,
[in] IUIAutomationCondition *condition,
TreeTraversalOptions traversalOptions,
[in, optional] IUIAutomationElement *root,
[out] IUIAutomationElementArray **found
);
参数
scope
[in] condition
指向表示要匹配的条件的条件的指针。
traversalOptions
[in, optional] root
指向开始搜索的元素的指针。
[out] found
接收指向匹配元素数组的指针。 如果未找到匹配的元素,则返回空数组。
返回值
如果成功 , 则返回S_OK,否则返回 HRESULT 错误代码。
要求
最低受支持的客户端 | Windows 10版本 1703 [仅限桌面应用] |
最低受支持的服务器 | Windows Server 2016 [仅限桌面应用] |
目标平台 | Windows |
标头 | uiautomationclient.h (包括 UIAutomation.h) |
DLL | UIAutomationCore.dll |
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈