Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article
Applies to: Visual Studio
Visual 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 string of the metric given its name.
HRESULT GetMetricString(
LPCWSTR pszType,
REFGUID guidSection,
LPCWSTR pszMetric,
BSTR* pbstrValue
);
private int GetMetricString(
string pszType,
ref Guid guidSection,
string pszMetric,
out string pbstrValue
);
pszType
[in] Type of the metric.
guidSection
[in] Unique identifier of the section.
pszMetric
[in] Name of the metric.
pbstrValue
[out] Returns the value string of the metric.
If successful, returns S_OK
; otherwise, returns an error code.