SystemMonitor.MonitorDuplicateInstances property
Retrieves or sets a value that determines whether multiple instances of a counter can be monitored.
This property is read-only.
Syntax
Property MonitorDuplicateInstances As Boolean
Property value
True indicates that multiple instances of a counter can be monitored (True is the default). False indicates that only one instance of a counter can be monitored.
Remarks
System Monitor appends #n to every instance name, except the first, if multiple instances exist. The serial number, n, begins with one and is incremented by one for each new instance. For example, if you specify "\Process(*)\% Processor Time", the counter collection should contain multiple instances of svchost. The first occurrence will be svchost, the next occurrence will be svchost#1, and so on.
Duplicate instances are monitored only if you use the wildcard character (*) for the instance name. If you specified "\Process(svchost)\% Processor Time" only the first instance found of svchost is monitored, not all instances of svchost.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
DLL |
|