Share via


IUIAutomationValuePattern::SetValue, méthode (uiautomationclient.h)

Définit la valeur de l’élément .

Syntaxe

HRESULT SetValue(
  [in] BSTR val
);

Paramètres

[in] val

Type : BSTR

Valeur à définir.

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 propriété CurrentIsEnabled doit avoir la valeur TRUE et la propriété IUIAutomationValuePattern::CurrentIsReadOnly doit avoir la valeur FALSE.

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)