IDebugSettingsCallback2::GetMetricString
如需 Visual Studio 2017 的最新文件請參閱 Visual Studio 2017 文件。
擷取指定其名稱的度量值字串。
語法
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]標準的類型。
guidSection
[in]區段的唯一識別碼。
pszMetric
[in]標準的名稱。
pbstrValue
[out]傳回度量的值字串。
傳回值
如果成功,傳回S_OK
; 否則傳回錯誤碼。