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

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

構文

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

パラメーター

scope

[in] condition

一致する条件を表す条件へのポインター。

[in] cacheRequest

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

traversalOptions

[in, optional] root

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

[out, retval] found

要素へのポインターを受け取ります。 一致する要素が見つからない場合、NULL が返されます。

戻り値

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

要件

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

こちらもご覧ください

IUIAutomationElement7