IPortableDeviceValuesCollection::Add method

The Add method adds an item to the collection.

Syntax


HRESULT Add(
  [in] IPortableDeviceValues *pValues
);

Parameters

pValues [in]

Pointer to an IPortableDeviceValues interface to add to the collection. The interface is not actually copied, but AddRef is called on it.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

E_OUTOFMEMORY

There is not enough memory available to add the value to the collection.

 

Requirements

Header

PortableDeviceTypes.h

Library

PortableDeviceGUIDs.lib

See also

IPortableDeviceValuesCollection Interface

 

 

Community Additions

ADD
Show: