Share via


IShellItem2 ::GetString, méthode (shobjidl_core.h)

Obtient la valeur de chaîne d’une clé de propriété spécifiée.

Syntaxe

HRESULT GetString(
  [in]  REFPROPERTYKEY key,
  [out] LPWSTR         *ppsz
);

Paramètres

[in] key

Type : REFPROPERTYKEY

Référence à une structure PROPERTYKEY .

[out] ppsz

Type : LPWSTR*

Pointeur vers une valeur de chaîne Unicode.

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 Vista [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2008 [applications de bureau uniquement]
Plateforme cible Windows
En-tête shobjidl_core.h (incluez Shobjidl.h)