IWDTFTargets2::Clear method (wdtf.h)

Removes all items from the collection.

Syntax

HRESULT Clear();

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The lifetime of IWDTFTarget2 interface instances are tied to their creator. If you clear all items from a collection, the items are not destroyed.

Requirements

Requirement Value
Minimum supported client Windows XP Professional
Minimum supported server Windows Server 2008
Target Platform Desktop
Header wdtf.h

See also

IWDTFTargets2