Share via


Interfaccia IPortableDeviceValues (portabledevicetypes.h)

L'interfaccia IPortableDeviceValues contiene una raccolta di coppie PROPERTYKEY/PROPVARIANT . I valori della raccolta non devono essere tutti uguali a VARTYPE. I valori vengono archiviati come coppie chiave-valore; ogni chiave deve essere univoca nella raccolta. I client possono cercare elementi in base a PROPERTYKEY o indice in base zero. I valori dei dati vengono archiviati come strutture PROPVARIANT . È possibile aggiungere o recuperare valori di qualsiasi tipo usando i metodi generici SetValue e GetValue oppure aggiungere elementi usando il metodo specifico per il tipo di dati aggiunto.

The Get... i metodi richiedono al chiamante di rilasciare i valori recuperati in modo appropriato. The Set... i metodi copiano il valore nella raccolta.

Quando viene rilasciata un'interfaccia IPortableDeviceValues, chiama Clear, che libera la memoria allocata per tutti i membri in modo appropriato

Questa interfaccia può essere recuperata da un metodo o, se è necessario un nuovo oggetto, chiamare CoCreate con CLSID_PortableDeviceValues.

Ereditarietà

L'interfaccia IPortableDeviceValues eredita dall'interfaccia IUnknown . IPortableDeviceValues include anche questi tipi di membri:

Metodi

L'interfaccia IPortableDeviceValues include questi metodi.

 
IPortableDeviceValues::Clear

Informazioni su come questo metodo elimina tutti gli elementi dalla raccolta.
IPortableDeviceValues::CopyValuesFromPropertyStore

Copia il contenuto di un archivio IProperty nell'insieme.
IPortableDeviceValues::CopyValuesToPropertyStore

Copia tutti i valori da una raccolta in un'interfaccia IPropertyStore.
IPortableDeviceValues::GetAt

Recupera un valore dalla raccolta, in base a un indice in base zero.
IPortableDeviceValues::GetBoolValue

Recupera un valore booleano (tipo VT_BOOL) specificato da una chiave.
IPortableDeviceValues::GetBufferValue

L'interfaccia GetBufferValue recupera un valore di matrice di byte (tipo VT_VECTOR o VT_UI1) specificato da una chiave.
IPortableDeviceValues::GetCount

Recupera il numero di elementi nella raccolta.
IPortableDeviceValues::GetErrorValue

Recupera un valore HRESULT (tipo VT_ERROR) specificato da una chiave.
IPortableDeviceValues::GetFloatValue

Il metodo GetFloatValue recupera un valore FLOAT (tipo VT_R4) specificato da una chiave.
IPortableDeviceValues::GetGuidValue

Recupera un valore GUID (tipo VT_CLSID) specificato da una chiave.
IPortableDeviceValues::GetIPortableDeviceKeyCollectionValue

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

Recupera un valore IPortableDevicePropVariantCollection (tipo VT_UNKNOWN) specificato da una chiave.
IPortableDeviceValues::GetIPortableDeviceValuesCollectionValue

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

Recupera un valore IPortableDeviceValues (tipo VT_UNKNOWN) specificato da una chiave.
IPortableDeviceValues::GetIUnknownValue

Recupera un valore dell'interfaccia IUnknown (tipo VT_UNKNOWN) specificato da una chiave.
IPortableDeviceValues::GetKeyValue

Recupera un valore PROPERTYKEY (tipo VT_UNKNOWN) specificato da una chiave.
IPortableDeviceValues::GetSignedIntegerValue

Recupera un valore LONG (tipo VT_I4) specificato da una chiave.
IPortableDeviceValues::GetSignedLargeIntegerValue

Recupera un valore LONGLONG (tipo VT_I8) specificato da una chiave.
IPortableDeviceValues::GetStringValue

Recupera un valore stringa (tipo VT_LPWSTR) specificato da una chiave.
IPortableDeviceValues::GetUnsignedIntegerValue

Recupera un valore ULONG (tipo VT_UI4) specificato da una chiave.
IPortableDeviceValues::GetUnsignedLargeIntegerValue

Recupera un valore ULONGLONG (tipo VT_UI8) specificato da una chiave.
IPortableDeviceValues::GetValue

L'interfaccia GetValue recupera un valore PROPVARIANT specificato da una chiave.
IPortableDeviceValues::RemoveValue

Il metodo RemoveValue rimuove un elemento dalla raccolta.
IPortableDeviceValues::SetBoolValue

Aggiunge un nuovo valore booleano (tipo VT_BOOL) o sovrascrive uno esistente.
IPortableDeviceValues::SetBufferValue

Aggiunge un nuovo valore BYTE* (tipo VT_VECTOR o VT_UI1) o sovrascrive uno esistente.
IPortableDeviceValues::SetErrorValue

Aggiunge un nuovo valore HRESULT (tipo VT_ERROR) o sovrascrive uno esistente.
IPortableDeviceValues::SetFloatValue

Aggiunge un nuovo valore FLOAT (tipo VT_R4) o sovrascrive uno esistente.
IPortableDeviceValues::SetGuidValue

Aggiunge un nuovo valore GUID (tipo VT_CLSID) o sovrascrive uno esistente.
IPortableDeviceValues::SetIPortableDeviceKeyCollectionValue

Aggiunge un nuovo valore SetIPortableDeviceKeyCollectionValue (tipo VT_UNKNOWN) o sovrascrive uno esistente.
IPortableDeviceValues::SetIPortableDevicePropVariantCollectionValue

Aggiunge un nuovo valore IPortableDevicePropVariantCollection (tipo VT_UNKNOWN) o sovrascrive uno esistente.
IPortableDeviceValues::SetIPortableDeviceValuesCollectionValue

Aggiunge un nuovo valore IPortableDeviceValuesCollection (tipo VT_UNKNOWN) o sovrascrive uno esistente.
IPortableDeviceValues::SetIPortableDeviceValuesValue

Aggiunge un nuovo valore IPortableDeviceValues (tipo VT_UNKNOWN) o sovrascrive uno esistente.
IPortableDeviceValues::SetIUnknownValue

Aggiunge un nuovo valore IUnknown (tipo VT_UNKNOWN) o sovrascrive uno esistente.
IPortableDeviceValues::SetKeyValue

Aggiunge un nuovo valore REFPROPERTYKEY (tipo VT_UNKNOWN) o sovrascrive uno esistente.
IPortableDeviceValues::SetSignedIntegerValue

Aggiunge un nuovo valore LONG (tipo VT_I4) o sovrascrive uno esistente.
IPortableDeviceValues::SetSignedLargeIntegerValue

Aggiunge un nuovo valore LONGLONG (tipo VT_I8) o sovrascrive uno esistente.
IPortableDeviceValues::SetStringValue

Aggiunge un nuovo valore stringa (tipo VT_LPWSTR) o sovrascrive uno esistente.
IPortableDeviceValues::SetUnsignedIntegerValue

Aggiunge un nuovo valore ULONG (tipo VT_UI4) o sovrascrive uno esistente.
IPortableDeviceValues::SetUnsignedLargeIntegerValue

Aggiunge un nuovo valore ULONGLONG (tipo VT_UI8) o sovrascrive uno esistente.
IPortableDeviceValues::SetValue

Aggiunge un nuovo valore o sovrascrive uno esistente.

Requisiti

Requisito Valore
Piattaforma di destinazione Windows
Intestazione portabledevicetypes.h

Vedi anche

Interfacce di raccolta