Iteration.AddMetricValue Method

Applies To: Windows 8.1

Creates and adds a MetricValue whose value to the Iteration.

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

Usage

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

returnValue = instance.AddMetricValue(programmaticName, value)

Syntax

'Declaration
Public Function AddMetricValue ( _
    programmaticName As String, _
    value As String _
) As MetricValue
public MetricValue AddMetricValue (
    string programmaticName,
    string value
)
public:
MetricValue^ AddMetricValue (
    String^ programmaticName, 
    String^ value
)
public MetricValue AddMetricValue (
    String programmaticName, 
    String value
)
public function AddMetricValue (
    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

Iteration Class
Iteration Members
Microsoft.Assessments.Runtime Namespace