IUIAutomationPatternInstance::GetProperty-Methode (uiautomationcore.h)

Das Clientwrapperobjekt implementiert die Methoden IUIAutomation::get_CurrentX und IUIAutomationElement::get_CachedX , indem diese Funktion aufgerufen wird, wobei die Eigenschaft anhand des Index angegeben wird.

Syntax

HRESULT GetProperty(
  [in]          UINT             index,
  [in]          BOOL             cached,
                UIAutomationType type,
  [out, retval] void             *pPtr
);

Parameter

[in] index

Typ: UINT

Der Index der Eigenschaft.

[in] cached

Typ: BOOL

TRUE , wenn die Eigenschaft aus dem Cache abgerufen werden soll, andernfalls FALSE.

type

[out, retval] pPtr

Typ: void*

Empfängt den Wert der -Eigenschaft.

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 [Desktop-Apps | UWP-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 [Desktop-Apps | UWP-Apps]
Zielplattform Windows
Kopfzeile uiautomationcore.h (uiAutomation.h einschließen)

Weitere Informationen

IUIAutomationPatternInstance