Share via


AffectedMetricCollection::GetItem method

Returns a metric reference from the AffectedMetricCollection.

Syntax

virtual HRESULT GetItem(
  [in]  INT     index,
  [out] LPCWSTR *metricReference
) = 0;

Parameters

index [in]

The metric reference identifier.

metricReference [out]

The metric reference.

Return value

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

Remarks

index ranges from 0 to one less than the count of items in the collection.

An AffectedMetricCollection object holds data from element Issue/AffectedMetrics.

A metric reference is the value of an Issue/AffectedMetrics/MetricReference element.

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

AffectedMetricCollection