IDataCollectorCollection::CreateDataCollector method

Creates a data collector of the specified type.

Syntax


HRESULT CreateDataCollector(
  [in]  DataCollectorType Type,
  [out] IDataCollector    **Collector
);

Parameters

Type [in]

The type of data collector to create. For possible data collector types, see the DataCollectorType enumeration.

Collector [out]

An IDataCollector interface of the newly created data collector. To get the actual data collector interface requested, call the QueryInterface method.

Return value

Returns S_OK if successful.

Remarks

Use one of the following interface identifiers to query the IDataCollector interface for the specific data collector.

Data collector interfaceInterface identifier
IApiTracingDataCollector IID_IApiTracingDataCollector
IAlertDataCollector IID_IAlertDataCollector
IConfigurationDataCollector IID_IConfigurationDataCollector
IPerformanceCounterDataCollector IID_IPerformanceCounterDataCollector
ITraceDataCollector IID_ITraceDataCollector

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Pla.h

DLL

Pla.dll

See also

IDataCollectorCollection
IDataCollectorCollection::CreateDataCollectorFromXml

 

 

Community Additions

ADD
Show: