Condividi tramite


Metodo IPortableDeviceValues::GetIPortableDeviceValuesCollectionValue (portabledevicetypes.h)

Recupera un valore IPortableDeviceValuesCollection (tipo VT_UNKNOWN) specificato da una chiave.

Sintassi

HRESULT GetIPortableDeviceValuesCollectionValue(
  [in]  REFPROPERTYKEY                  key,
  [out] IPortableDeviceValuesCollection **ppValue
);

Parametri

[in] key

Chiave REFPROPERTYKEY che specifica l'elemento da recuperare.

[out] ppValue

Indirizzo di una variabile che riceve un puntatore all'interfaccia IPortableDeviceValuesCollection recuperata. Il chiamante è responsabile della chiamata a Release nell'interfaccia recuperata.

Valore restituito

Il metodo restituisce un HRESULT. I valori possibili includono, ma non sono limitati a, quelli indicati nella tabella seguente.

Codice restituito Descrizione
S_OK
Il metodo è riuscito.
DISP_E_TYPEMISMATCH
La proprietà specificata dalla chiave non è un'interfaccia IPortableDeviceValuesCollection .
HRESULT_FROM_WIN32(ERROR_NOT_FOUND)
La proprietà specificata dalla chiave non è nella raccolta.

Commenti

Nessuno.

Requisiti

Requisito Valore
Piattaforma di destinazione Windows
Intestazione portabledevicetypes.h

Vedi anche

Interfaccia IPortableDeviceValues

SetIPortableDeviceValuesCollectionValue