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

指定した条件の負の条件を作成します。

構文

HRESULT CreateNotCondition(
  [in]          IUIAutomationCondition *condition,
  [out, retval] IUIAutomationCondition **newCondition
);

パラメーター

[in] condition

種類: IUIAutomationCondition*

初期条件へのポインター。

[out, retval] newCondition

種類: IUIAutomationCondition**

condition パラメーターで指定された初期条件の負の値へのポインターを受け取ります。

戻り値

型: HRESULT

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

解説

CreateNotCondition メソッドは、条件ポインターに対して AddRef を呼び出します。 つまり、CreateNotCondition の呼び出しで CreateNotCondition から返されたポインターを無効にすることなく、そのポインターに対して Release を呼び出すことができます。 CreateNotCondition から返されたポインターで Release を呼び出すと、UI オートメーションは条件ポインターに対して Release を呼び出します。

要件

   
サポートされている最小のクライアント 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 を含む)

関連項目

Findall

FindAllBuildCache

Findfirst

FindFirstBuildCache

IUIAutomation

IUIAutomationCondition

参照