Insert(Int32, CounterCreationData) Method

Inserts a CounterCreationData into the collection, at the specified index.
Namespace: System.DiagnosticsAssembly: System in (System.dll)

Syntax

public void Insert(
        int index,
        CounterCreationData value
        )

Parameters

index
Type: Int32
The zero-based index of the location at which the CounterCreationData is to be inserted.
value
The CounterCreationData to insert into the collection.

Exceptions

Exception Condition
System.ArgumentOutOfRangeException index is less than 0. -or-index is greater than the number of items in the collection.
System.ArgumentNullException value is null.
System.ArgumentException value is not a CounterCreationData object.