Clear Method

Deletes all items from the collection.

HRESULT Clear();

Parameters

This method takes no parameters.

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.

Remarks

This method frees the memory for all PROPVARIANT structures in the collection.

Requirements

Requires Windows 7.