次の方法で共有


MetricValueCollection::AddItem method

Creates and adds a MetricValue whose value is a DOUBLE.

Syntax

virtual HRESULT AddItem(
  [in]            LPCWSTR     programmaticName,
  [in]            DOUBLE      value,
  [out, optional] MetricValue **metricValue
) = 0;

Parameters

programmaticName [in]

The programmatic name.

value [in]

The value.

metricValue [out, optional]

The MetricValue that this method creates.

Return value

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

Remarks

A MetricValueCollection holds data from an Issue/MetricValues, Iteration/MetricValues, or TestCase/MetricValues element.

A MetricValue object holds data from a MetricValues/MetricValue element.

The programmatic name is the value of element MetricValue/ProgrammaticName.

The value is the value of element MetricValue/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

MetricValueCollection