Share via


MetricThresholdValueCollection::AddItem method

Creates and adds a MetricThresholdValue to the MetricThresholdValueCollection.

Syntax

virtual HRESULT AddItem(
  [in]            LPCWSTR                       descriptionProgrammaticName,
  [in]            MetricThresholdValueValueType valueType,
  [in]            LPCWSTR                       value,
  [out, optional] MetricThresholdValue          **metricThresholdValue
) = 0;

Parameters

descriptionProgrammaticName [in]

The description programmatic name.

valueType [in]

The metric threshold value type.

value [in]

The metric threshold value.

metricThresholdValue [out, optional]

The MetricThresholdValue that this method creates.

Return value

If the function succeeds, it returns S_OK. If it fails, it returns an error value.

Remarks

The MetricThresholdValueCollection holds data from element MetricThreshold/MetricThresholdValues.

The MetricThresholdValue elements hold data from MetricThresholdValues/MetricThresholdValue elements.

The description programmatic name is the value of element MetricThresholdValue/Description/ProgrammaticName.

The metric threshold value type is the value of element MetricThresholdValue/ValueType. See MetricThresholdValueValueType for the value types.

The metric threshold value is the value of element MetricThresholdValue/Value.

Requirements

Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]
Header
AxeRuntime.h
DLL
AxeCore.dll

See also

MetricThresholdValueCollection