IDataManager::Run method (pla.h)

Manually runs the data manager.

Syntax

HRESULT Run(
  [in]  DataManagerSteps Steps,
  [in]  BSTR             bstrFolder,
  [out] IValueMap        **Errors
);

Parameters

[in] Steps

Determines whether the folder actions and resource policies are applied and how to generate the report. For possible steps, see the DataManagerSteps enumeration.

[in] bstrFolder

The folder under the IDataCollectorSet::RootPath property that contains the files used to generate the report. If NULL, PLA uses all the files in the collection. This folder is used only if the Steps parameter includes plaCreateReport or plaRunRules.

[out] Errors

An IValueMap interface that you use to retrieve any errors that occurred. The value map can contain the list of directories where errors were encountered, along with the error codes. The IValueMap::Count property is zero if there were no errors.

Return value

Returns S_OK if successful.

Remarks

Data management runs in the current process and blocks until the data management steps complete.

To automatically run the data manager when the data collector set finishes running, set the IDataManager::Enabled property to VARIANT_TRUE.

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

IDataManager