Méthode IUIAutomationPatternInstance ::GetProperty (uiautomationcore.h)

L’objet wrapper client implémente les méthodes IUIAutomation ::get_CurrentX et IUIAutomationElement ::get_CachedX en appelant cette fonction, en spécifiant la propriété par index.

Syntaxe

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

Paramètres

[in] index

Type : UINT

Index de la propriété.

[in] cached

Type : BOOL

TRUE si la propriété doit être récupérée à partir du cache, sinon FALSE.

type

[out, retval] pPtr

Type : void*

Reçoit la valeur de la propriété .

Valeur retournée

Type : HRESULT

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

Spécifications

Condition requise Valeur
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 | Applications UWP]
Serveur minimal pris en charge Windows Server 2008 R2, Windows Server 2008 avec SP2 et Mise à jour de plateforme pour Windows Server 2008, Windows Server 2003 avec SP2 et Mise à jour de plateforme pour Windows Server 2008 [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête uiautomationcore.h (incluez UIAutomation.h)

Voir aussi

IUIAutomationPatternInstance