Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Show:
© 2016 Microsoft