Compartir a través de


IDebugEngine2::SetMetric

This method sets a registry value known as a metric.

HRESULT SetMetric(
   LPCOLESTR pszMetric,
   VARIANT   varValue
);
int SetMetric(
   string pszMetric,
   object varValue
);

Parameters

  • pszMetric
    [in] The metric name.

  • varValue
    [in] Specifies the metric value.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

A metric is a registry value used to change a debug engine's behavior or to advertise supported functionality. This method can forward the call to the appropriate form of the SDK Helpers for Debugging function, SetMetric.

See Also

Reference

IDebugEngine2

SDK Helpers for Debugging