IDataCollectorCollection::Add method (pla.h)

Adds a data collector to the collection.

Syntax

HRESULT Add(
  [in] IDataCollector *collector
);

Parameters

[in] collector

An IDataCollector interface of the data collector to add to this collection.

Return value

Returns S_OK if successful. The following table shows a possible error value.

Return code/value Description
PLA_E_DCS_SINGLETON_REQUIRED
0x80300102
The current configuration for the data collector set requires that it contain exactly one data collector.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header pla.h
DLL Pla.dll

See also

IDataCollectorCollection

IDataCollectorCollection::AddRange

IDataCollectorCollection::Remove