Share via


MetricThresholdValueCollection.AddItem Method

Applies To: Windows 8.1

Creates and adds a MetricThresholdValue to the MetricThresholdValueCollection.

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

Usage

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

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

Syntax

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

Parameters

  • descriptionProgrammaticName
  • valueType
  • value

Return Value

Returns MetricThresholdValue.

Remarks

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

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

The metric threshold 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

MetricThresholdValueCollection Class
MetricThresholdValueCollection Members
Microsoft.Assessments.Runtime Namespace