Compartir a través de


IDebugSettingsCallback2::GetMetricDword

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Retrieves the value of a metric given its name.

Syntax

HRESULT GetMetricDword(
   LPCWSTR pszType,
   REFGUID guidSection,
   LPCWSTR pszMetric,
   DWORD*  pdwValue
);
private int GetMetricDword(
   string   pszType,
   ref Guid guidSection,
   string   pszMetric,
   out uint pdwValue
);

Parameters

pszType
[in] Type of the metric.

guidSection
[in] Unique identifier of the section.

pszMetric
[in] Name of the metric.

pdwValue
[out] Returns the value of the metric.

Return Value

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

See also