Méthode IPortableDeviceValues::GetIPortableDevicePropVariantCollectionValue

La méthode GetIPortableDevicePropVariantCollectionValue récupère une valeur IPortableDevicePropVariantCollection (type VT_UNKNOWN) spécifiée par une clé.

Syntaxe

HRESULT GetIPortableDevicePropVariantCollectionValue(
  [in]  REFPROPERTYKEY                       key,
  [out] IPortableDevicePropVariantCollection **ppValue
);

Paramètres

key [in]

Clé REFPROPERTYKEY qui spécifie l’élément à récupérer.

ppValue [out]

Adresse d’une variable qui reçoit un pointeur vers l’interface IPortableDevicePropVariantCollection récupérée. L’appelant est chargé d’appeler Release sur l’interface récupérée.

Valeur retournée

Cette méthode retourne un code HRESULT. Les valeurs possibles sont notamment celles figurant dans le tableau suivant.

Code de retour Description
S_OK
S_OK
DISP_E_TYPEMISMATCH
La propriété spécifiée par la clé n’est pas une interface IPortableDevicePropVariantCollection .
HRESULT_FROM_WIN32(ERROR_NOT_FOUND)
La propriété spécifiée par la clé n’est pas dans la collection.

Spécifications

Condition requise Valeur
En-tête
PortableDeviceTypes.h
Bibliothèque
PortableDeviceGUIDs.lib

Voir aussi

IPortableDeviceValues, interface

IPortableDeviceValues::SetIPortableDevicePropVariantCollectionValue