IUIAutomation::CreatePropertyConditionEx-Methode (uiautomationclient.h)

Erstellt eine Bedingung, die Elemente mit einer Eigenschaft mit dem angegebenen Wert unter Verwendung optionaler Flags auswählt.

Syntax

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

Parameter

[in] propertyId

Typ: PROPERTYID

Der Eigenschaftenbezeichner. Eine Liste der Eigenschaften-IDs finden Sie unter Eigenschaftenbezeichner.

[in] value

Typ: RECT

Der Eigenschaftswert.

flags

[out, retval] newCondition

Typ: IUIAutomationCondition**

Empfängt einen Zeiger auf die neue Bedingung.

Rückgabewert

Typ: HRESULT

Wenn diese Methode erfolgreich ist, wird S_OK zurückgegeben. Andernfalls wird ein Fehlercode HRESULT zurückgegeben.

Anforderungen

Anforderung Wert
Unterstützte Mindestversion (Client) Windows 7, Windows Vista mit SP2 und Plattformupdate für Windows Vista, Windows XP mit SP3 und Plattformupdate für Windows Vista [nur Desktop-Apps]
Unterstützte Mindestversion (Server) Windows Server 2008 R2, Windows Server 2008 mit SP2 und Plattformupdate für Windows Server 2008, Windows Server 2003 mit SP2 und Plattformupdate für Windows Server 2008 [nur Desktop-Apps]
Zielplattform Windows
Kopfzeile uiautomationclient.h (include UIAutomation.h)

Weitere Informationen

Bewährte Methoden für die Verwendung sicherer Arrays

Konzept

CreatePropertyCondition

Findall

FindAllBuildCache

Findfirst

FindFirstBuildCache

IUIAutomation

IUIAutomationCondition

Referenz