Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Note
This article applies to Visual Studio 2015. 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
This method sets a registry value known as a metric.
Syntax
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.