CopyTo(CounterCreationData[], Int32) Method
Copies the elements of the CounterCreationData to an array, starting at the specified index of the array.
Namespace: System.DiagnosticsAssembly: System in (System.dll)
Syntax
public void CopyTo( CounterCreationData[] array, int index )
Parameters
- array
-
Type: CounterCreationDataAn array of CounterCreationData instances to add to the collection.
- index
-
Type: Int32The location at which to add the new instances.
Exceptions
Exception | Condition |
---|---|
System.ArgumentException | index is equal to or greater than the length of the array.-or-The number of elements in the CounterCreationDataCollection is greater than the available space from index to the end of the destination array. |
System.ArgumentOutOfRangeException | index is less than 0. |
System.ArgumentNullException | array is null. |