IDataCollectorSet::SetValue method (pla.h)

Sets a user-defined value.

Syntax

HRESULT SetValue(
  [in] BSTR key,
  [in] BSTR value
);

Parameters

[in] key

The name of the value.

[in] value

The value associated with the key.

Return value

Returns S_OK if successful.

Remarks

You can specify one or more user-defined values. If you specify a key that currently exists, the current value is overwritten. To remove a value, set the pValue parameter to NULL.

You use the key value if you want to perform variable substitution in the IDataCollectorSet::TaskArguments property.

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

IDataCollectorSet

IDataCollectorSet::GetValue