Share via


Metodo IPortableDeviceValues::SetUnsignedIntegerValue (portabledevicetypes.h)

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

Sintassi

HRESULT SetUnsignedIntegerValue(
  [in] REFPROPERTYKEY key,
  [in] const ULONG    Value
);

Parametri

[in] key

REFPROPERTYKEY che specifica l'elemento da creare o sovrascrivere.

[in] Value

ULONG che specifica il nuovo valore.

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.

Commenti

Se un valore esistente ha la stessa chiave specificata dal parametro chiave , sovrascrive il valore esistente senza alcun avviso.

Requisiti

Requisito Valore
Piattaforma di destinazione Windows
Intestazione portabledevicetypes.h

Vedi anche

Interfaccia IPortableDeviceValues

IPortableDeviceValues::GetUnsignedIntegerValue