IUIAutomationElement7::FindAllWithOptionsBuildCache メソッド (uiautomationclient.h)

指定した順序で一致するすべての要素を検索しますが、プロパティとパターンもキャッシュします。

構文

HRESULT FindAllWithOptionsBuildCache(
  [in]          TreeScope                 scope,
  [in]          IUIAutomationCondition    *condition,
  [in]          IUIAutomationCacheRequest *cacheRequest,
  [in]          TreeTraversalOptions      traversalOptions,
  [in]          IUIAutomationElement      *root,
  [out, retval] IUIAutomationElementArray **found
);

パラメーター

[in] scope

種類: TreeScope

要求のスコープ。

要素が取得されると、キャッシュは要素自体 (既定の動作) に対してのみ実行するか、要素とその子または子孫に対して実行できます。 このプロパティは、要求のスコープを表します。

[in] condition

種類: IUIAutomationCondition

UI オートメーション ツリー内の要素を検索するときにフィルター処理で使用される条件のプライマリ インターフェイス。

[in] cacheRequest

種類: IUIAutomationCacheRequest

キャッシュに含めるコントロール パターンとプロパティを指定するキャッシュ要求へのポインター。

[in] traversalOptions

種類: TreeTraversalOptions

ツリー ナビゲーションの順序。

[in] root

種類: IUIAutomationElement

検索を開始する要素へのポインター。

[out, retval] found

一致する要素の配列へのポインターを受け取ります。 一致する要素が見つからない場合は、空の配列を返します。

戻り値

成功 した場合はS_OK を返し、それ以外の場合は HRESULT エラー コードを返します。

要件

要件
サポートされている最小のクライアント Windows 10バージョン 1703 [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows Server 2016 [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー uiautomationclient.h (UIAutomation.h を含む)
[DLL] UIAutomationCore.dll

こちらもご覧ください

IUIAutomationElement7