Share via


IUIAutomation::CreateNotCondition, méthode (uiautomationclient.h)

Crée une condition qui est le négatif d’une condition spécifiée.

Syntaxe

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

Paramètres

[in] condition

Type : IUIAutomationCondition*

Pointeur vers la condition initiale.

[out, retval] newCondition

Type : IUIAutomationCondition**

Reçoit un pointeur vers le négatif de la condition initiale spécifiée par le paramètre condition .

Valeur retournée

Type : HRESULT

Si cette méthode réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.

Remarques

La méthode CreateNotCondition appelle AddRef sur le pointeur de condition . Cela signifie que vous pouvez appeler Release sur ce pointeur après le retour de l’appel à CreateNotCondition sans invalider le pointeur retourné par CreateNotCondition. Lorsque vous appelez Release sur le pointeur retourné par CreateNotCondition, UI Automation appelle Release sur le pointeur de condition .

Configuration requise

   
Client minimal pris en charge Windows 7, Windows Vista avec SP2 et Mise à jour de plateforme pour Windows Vista, Windows XP avec SP3 et Mise à jour de plateforme pour Windows Vista [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2008 R2, Windows Server 2008 avec SP2 et Platform Update pour Windows Server 2008, Windows Server 2003 avec SP2 et Platform Update pour Windows Server 2008 [applications de bureau uniquement]
Plateforme cible Windows
En-tête uiautomationclient.h (incluez UIAutomation.h)

Voir aussi

FindAll

FindAllBuildCache

FindFirst

FindFirstBuildCache

IUIAutomation

IUIAutomationCondition

Référence