Condividi tramite


Metodo IPortableDeviceValues::GetIPortableDeviceKeyCollectionValue (portabledevicetypes.h)

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

Sintassi

HRESULT GetIPortableDeviceKeyCollectionValue(
  [in]  REFPROPERTYKEY               key,
  [out] IPortableDeviceKeyCollection **ppValue
);

Parametri

[in] key

Chiave REFPROPERTYKEY che specifica l'elemento da recuperare.

[out] ppValue

Puntatore al puntatore dell'interfaccia IPortableDeviceKeyCollection recuperato. 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 IPortableDeviceKeyCollection .
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

IPortableDeviceValues::SetIPortableDeviceKeyCollectionValue