Share via


MetricThreshold.AddMetricThresholdValue Method

Applies To: Windows 8.1

Creates and adds a MetricThresholdValue to the MetricThreshold.

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

Usage

'Usage
Dim instance As MetricThreshold
Dim descriptionProgrammaticName As String
Dim valueType As MetricThresholdValueValueType
Dim value As String
Dim returnValue As MetricThresholdValue

returnValue = instance.AddMetricThresholdValue(descriptionProgrammaticName, valueType, value)

Syntax

'Declaration
Public Function AddMetricThresholdValue ( _
    descriptionProgrammaticName As String, _
    valueType As MetricThresholdValueValueType, _
    value As String _
) As MetricThresholdValue
public MetricThresholdValue AddMetricThresholdValue (
    string descriptionProgrammaticName,
    MetricThresholdValueValueType valueType,
    string value
)
public:
MetricThresholdValue^ AddMetricThresholdValue (
    String^ descriptionProgrammaticName, 
    MetricThresholdValueValueType valueType, 
    String^ value
)
public MetricThresholdValue AddMetricThresholdValue (
    String descriptionProgrammaticName, 
    MetricThresholdValueValueType valueType, 
    String value
)
public function AddMetricThresholdValue (
    descriptionProgrammaticName : String, 
    valueType : MetricThresholdValueValueType, 
    value : String
) : MetricThresholdValue

Parameters

  • descriptionProgrammaticName
    The description programmatic name.
  • valueType
    The value type.
  • value
    The value.

Return Value

Returns MetricThresholdValue.

Remarks

The description programmatic name is the value of element MetricThresholdValue/Description/ProgrammaticName.

The value type is the value of element MetricThresholdValue/ValueType. See MetricThresholdValueValueType for the value types.

The value is the value of element MetricThresholdValue/Value.

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

MetricThreshold Class
MetricThreshold Members
Microsoft.Assessments.Runtime Namespace