Share via


AffectedMetricCollection.AddItem Method

Applies To: Windows 8.1

Creates and adds a metric reference to the AffectedMetricCollection.

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

Usage

'Usage
Dim instance As AffectedMetricCollection
Dim metricReference As String

instance.AddItem(metricReference)

Syntax

'Declaration
Public Sub AddItem ( _
    metricReference As String _
)
public void AddItem (
    string metricReference
)
public:
void AddItem (
    String^ metricReference
)
public void AddItem (
    String metricReference
)
public function AddItem (
    metricReference : String
)

Parameters

  • metricReference
    The metric reference.

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

AffectedMetricCollection Class
AffectedMetricCollection Members
Microsoft.Assessments.Runtime Namespace