Share via


TestCase.AddMetricThreshold Method

Applies To: Windows 8.1

Creates and adds a MetricThreshold to the TestCase.

Namespace: Microsoft.Assessments.Runtime
Assembly: Microsoft.Assessments.Core (in Microsoft.Assessments.Core.dll)

Usage

'Usage
Dim instance As TestCase
Dim descriptionProgrammaticName As String
Dim metricDefinitionProgrammaticName As String
Dim returnValue As MetricThreshold

returnValue = instance.AddMetricThreshold(descriptionProgrammaticName, metricDefinitionProgrammaticName)

Syntax

'Declaration
Public Function AddMetricThreshold ( _
    descriptionProgrammaticName As String, _
    metricDefinitionProgrammaticName As String _
) As MetricThreshold
public MetricThreshold AddMetricThreshold (
    string descriptionProgrammaticName,
    string metricDefinitionProgrammaticName
)
public:
MetricThreshold^ AddMetricThreshold (
    String^ descriptionProgrammaticName, 
    String^ metricDefinitionProgrammaticName
)
public MetricThreshold AddMetricThreshold (
    String descriptionProgrammaticName, 
    String metricDefinitionProgrammaticName
)
public function AddMetricThreshold (
    descriptionProgrammaticName : String, 
    metricDefinitionProgrammaticName : String
) : MetricThreshold

Parameters

  • descriptionProgrammaticName
    The description programmatic name.
  • metricDefinitionProgrammaticName
    The metric definition programmatic name.

Return Value

Returns MetricThreshold.

Remarks

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows 8.1

See Also

Reference

TestCase Class
TestCase Members
Microsoft.Assessments.Runtime Namespace