Share via


Iteration::AddMetricValue method

Creates and adds a MetricValue whose value is a LPCWSTR.

Syntax

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

Parameters

programmaticName [in]

The programmatic name.

value [in]

The value.

metricValue [out]

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

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

Iteration