IUIAutomation::CreatePropertyConditionEx メソッド (uiautomationclient.h)

省略可能なフラグを使用して、指定した値を持つプロパティを持つ要素を選択する条件を作成します。

構文

HRESULT CreatePropertyConditionEx(
  [in]          PROPERTYID             propertyId,
  [in]          VARIANT                value,
                PropertyConditionFlags flags,
  [out, retval] IUIAutomationCondition **newCondition
);

パラメーター

[in] propertyId

型: PROPERTYID

プロパティの識別子。 プロパティ ID の一覧については、「 プロパティ識別子」を参照してください。

[in] value

種類: RECT

プロパティ値。

flags

[out, retval] newCondition

種類: IUIAutomationCondition**

新しい条件へのポインターを受け取ります。

戻り値

型: HRESULT

このメソッドは、成功すると S_OK を返します。 そうでない場合は、HRESULT エラー コードを返します。

要件

要件
サポートされている最小のクライアント Windows 7、Windows Vista SP2 と Windows Vista 用プラットフォーム更新プログラム、WINDOWS XP SP3 と Windows Vista 用プラットフォーム更新プログラム [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows Server 2008 R2、Windows Server 2008 SP2 および Windows Server 2008 用プラットフォーム更新プログラム、WINDOWS Server 2003 SP2 および Windows Server 2008 用プラットフォーム更新プログラム [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー uiautomationclient.h (UIAutomation.h を含む)

こちらもご覧ください

安全な配列を使用するためのベスト プラクティス

概念

CreatePropertyCondition

Findall

FindAllBuildCache

Findfirst

FindFirstBuildCache

IUIAutomation

IUIAutomationCondition

参照