Add Method

Adds an item to the collection.

HRESULT Add(
    [in]  const PROPVARIANT* pValue
);

Parameters

pValue

[in] Pointer to a PROPVARIANT that contains the value to add to the collection.

Return Value

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

Value Description

S_OK

The method succeeded.

Requirements

Requires Windows 7.