The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

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)

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





Return Value

Returns MetricThresholdValue.

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.

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

Development Platforms

Windows 8.1