IWDTFTargets2::Remove method (wdtf.h)

Removes an item from the collection.

Syntax

HRESULT Remove(
  [in] IWDTFTarget2 *pTarget
);

Parameters

[in] pTarget

The item to remove from this collection.

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 remove an item from a collection, the item is 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