Partager via


MetricValueCollection.AddItem Method

Applies To: Windows 8.1

Creates a MetricValue and adds it to the MetricValueCollection.

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

Usage

'Usage
Dim instance As MetricValueCollection
Dim programmaticName As String
Dim value As String
Dim returnValue As MetricValue

returnValue = instance.AddItem(programmaticName, value)

Syntax

'Declaration
Public Function AddItem ( _
    programmaticName As String, _
    value As String _
) As MetricValue
public MetricValue AddItem (
    string programmaticName,
    string value
)
public:
MetricValue^ AddItem (
    String^ programmaticName, 
    String^ value
)
public MetricValue AddItem (
    String programmaticName, 
    String value
)
public function AddItem (
    programmaticName : String, 
    value : String
) : MetricValue

Parameters

  • programmaticName
    The programmatic name.
  • value
    The value.

Return Value

Returns MetricValue.

Remarks

The programmatic name is the value of element MetricValue/ProgrammaticName.

The value is the value of element MetricValue/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

MetricValueCollection Class
MetricValueCollection Members
Microsoft.Assessments.Runtime Namespace