IPortableDeviceKeyCollection::Add

banner art

Previous Next

IPortableDeviceKeyCollection::Add

The Add method adds a property key to the collection.

Syntax

  HRESULT Add(
  REFPROPERTYKEY  Key
);

Parameters

Key

[in]  A REFPROPERTYKEY to add to the collection. This method copies the key to the collection, so you can release the local variable after calling this method.

Return Values

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

Return code Description
S_OK The method succeeded.
E_OUTOFMEMORY There is not enough memory available to add the key to the collection.

Requirements

Header: Defined in PortableDeviceTypes.h

Library: PortableDeviceGUIDs.lib

See Also

Previous Next