Iteration.AddMetricThreshold Method

Applies To: Windows 8.1

Creates and adds a MetricThreshold to the Iteration.

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

Usage

'Usage
Dim instance As Iteration
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 MetricThreshold objects hold information from the Iteration/MetricThresholds/MetricThreshold elements.

The description programmatic name is the value of element Iteration/MetricThresholds/MetricThreshold/Description.

The metric definition programmatic name is the value of element Iteration/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

Iteration Class
Iteration Members
Microsoft.Assessments.Runtime Namespace