Share via


MetricThresholdValue::SetComparison method

Sets the comparison setting of the MetricThresholdValue.

Syntax

virtual HRESULT SetComparison(
  [in] MetricThresholdValueComparison comparison
) = 0;

Parameters

comparison [in]

The comparison setting.

Return value

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

Remarks

The MetricThresholdValue objects hold data from the MetricThreshold/MetricThresholdValues/MetricThresholdValue elements.

The comparison setting is the value of element MetricThresholdValue/Comparison. See MetricThresholdValueComparison for the comparison settings.

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

MetricThresholdValue