Partager via


MetricThresholdCollection.AddItem Method

Applies To: Windows 8.1

Creates and adds a MetricThreshold to the MetricThresholdCollection.

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

Usage

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

returnValue = instance.AddItem(descriptionProgrammaticName, metricDefinitionProgrammaticName)

Syntax

'Declaration
Public Function AddItem ( _
    descriptionProgrammaticName As String, _
    metricDefinitionProgrammaticName As String _
) As MetricThreshold
public MetricThreshold AddItem (
    string descriptionProgrammaticName,
    string metricDefinitionProgrammaticName
)
public:
MetricThreshold^ AddItem (
    String^ descriptionProgrammaticName, 
    String^ metricDefinitionProgrammaticName
)
public MetricThreshold AddItem (
    String descriptionProgrammaticName, 
    String metricDefinitionProgrammaticName
)
public function AddItem (
    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 MetricThreshold/Description/ProgrammaticName.

The metric definition programmatic name is the value of element MetricThreshold/MetricDefinitionProgrammaticName.

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

MetricThresholdCollection Class
MetricThresholdCollection Members
Microsoft.Assessments.Runtime Namespace