MetricThresholdCollection::AddItem method
Creates and adds a MetricThreshold to the MetricThresholdCollection.
Syntax
virtual HRESULT AddItem(
[in] LPCWSTR descriptionProgrammaticName,
[in] LPCWSTR metricDefinitionProgrammaticName,
[out, optional] MetricThreshold **metricThreshold
) = 0;
Parameters
-
descriptionProgrammaticName [in]
-
The description programmatic name.
-
metricDefinitionProgrammaticName [in]
-
The metric definition programmatic name.
-
metricThreshold [out, optional]
-
The MetricThreshold that this method creates.
Return value
If the function succeeds, it returns S_OK. If it fails, it returns an error value.
Remarks
A MetricThresholdCollection holds data from a MetricThresholds element.
A MetricThreshold holds data from a MetricThresholds/MetricThreshold element.
The description programmatic name is the value of element MetricThreshold/Description/ProgrammaticName.
The metric definition programmatic name is the value of element MetricThreshold/MetricDefinitionProgrammaticName.
Requirements
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
Header |
|
DLL |
|