This topic has not yet been rated - Rate this topic

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 CounterSetInstanceType
Member nameDescription
SingleThe counter set contains single instance counters, for example, a counter that measures physical memory.
MultipleThe counter set contains multiple instance counters, for example, a counter that measures the average disk I/O for a process.
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.
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.
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.

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

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

.NET Framework

Supported in: 3.5
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.