TestCase::AddMetricThreshold method
Creates and adds a MetricThreshold to the TestCase.
Syntax
virtual HRESULT AddMetricThreshold(
[in] LPCWSTR descriptionProgrammaticName,
[in] LPCWSTR metricDefinitionProgrammaticName,
[out, optional] MetricThreshold **metricThreshold
) = 0;
Parameters
-
descriptionProgrammaticName [in]
-
The description programmatic name.
-
metricDefinitionProgrammaticName [in]
-
The metric definition programmatic name.
-
metricThreshold [out, optional]
-
The MetricThreshold that this method creates.
Return value
If the function succeeds, it returns S_OK. If it fails, it returns an error value.
Remarks
The TestCase objects hold information from the Iteration/TestCases/TestCase elements.
The MetricThreshold objects hold information from the TestCase/MetricThresholds/MetricThreshold elements.
The description programmatic name is the value of element TestCase/MetricThresholds/MetricThreshold/Description.
The metric definition programmatic name is the value of element TestCase/MetricThresholds/MetricThreshold/MetricDefintionProgrammaticName.
Requirements
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
Header |
|
DLL |
|