CounterSetInstanceType Enumeration

Specifies whether the counter set allows multiple instances such as processes and physical disks, or a single instance such as memory.

Namespace:  System.Diagnostics.PerformanceData
Assembly:  System.Core (in System.Core.dll)

public enum class CounterSetInstanceType

Member nameDescription
GlobalAggregateThe counter set contains single instance counters whose aggregate value is obtained from one or more sources. For example, a counter in this type of counter set might obtain the number of reads from each of the three hard disks on the computer and sum their values.
GlobalAggregateWithHistoryThis type is similar to GlobalAggregate except that this counter set type stores all counter values for the lifetime of the consumer application (the counter value is cached beyond the lifetime of the counter). For example, if one of the hard disks in the global aggregate example were to become unavailable, the total bytes read by that disk would still be available and used to calculate the aggregate value.
InstanceAggregateThis type is similar to MultipleAggregate, except that instead of aggregating all instance data to one aggregated (_Total) instance, it will aggregate counter data from instances of the same name. For example, if multiple provider processes contained instances named IExplore, Multiple and MultipleAggregate CounterSet will show multiple IExplore instances (IExplore, IExplore#1, IExplore#2, and so on); however, a InstanceAggregate instance type will publish only one IExplore instance with aggregated counter data from all instances named IExplore.

This type is not supported in Windows Vista.

MultipleThe counter set contains multiple instance counters, for example, a counter that measures the average disk I/O for a process.
MultipleAggregateThe counter set contains multiple instance counters whose aggregate value is obtained from all instances of the counter. For example, a counter in this type of counter set might obtain the total thread execution time for all threads in a multithreaded application and sum their values.
SingleThe counter set contains single instance counters, for example, a counter that measures physical memory.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft