Counters.Remove method

Removes a CounterItem instance from the collection.

Syntax

Counters.Remove( _
  ByVal index As Object _
)

Parameters

index [in]

Index of the CounterItem object to remove from the collection. The index is one-based.

Return value

This method does not return a value.

Exceptions

Exception type Condition
System.Runtime.InteropServices.COMException The specified index is not valid. The Err.Number value is ???.

Remarks

To remove all counters from the collection, you can call SystemMonitor.Reset.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
DLL
Sysmon.ocx

See also

Counters

SystemMonitor.Reset