Partager via


Méthode CItemIDFactory ::GetPropertyFromIDList(PCUIDLIST_RELATIVE,PCWSTR,VARIANT*) (shidfact.h)

Obtient une propriété de l’IPropertyStore dans l’IDList en tant que variante, à l’aide de la clé .

Syntaxe

HRESULT GetPropertyFromIDList(
  [in] PCUIDLIST_RELATIVE pidl,
  [in] PCWSTR             pszName,
       VARIANT            *pvar
);

Paramètres

[in] pidl

PiDL identifiant l’IPropertyStore.

[in] pszName

Clé de la propriété sélectionnée.

pvar

Lorsque cette méthode est retournée, contient un pointeur vers la propriété . Si rkey est introuvable, pvar est VT_EMPTY.

Valeur retournée

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

Remarques

Cette méthode est utile lors de l’utilisation de IShellFolder2 ::GetDetailsEx, car elle retourne une variante plutôt qu’un PROPVARIANT.

Configuration requise

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 shidfact.h

Voir aussi

CItemIDFactory

GetPropertyFromIDList

Ipropertystore

IShellFolder2 ::GetDetailsEx