NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

PerformanceCounter Properties

The properties of the PerformanceCounter class are listed below. For a complete list of PerformanceCounter class members, see the PerformanceCounter Members topic.

Public:

CategoryName Returns the performance category name for this performance counter
CounterHelp Returns the description message for this performance counter
CounterName Sets/returns the performance counter name for this performance counter
CounterType Sets/Returns the counter type for this performance counter
InstanceName Sets/returns an instance name for this performance counter
MachineName Set/returns the machine name for this performance counter
RawValue Directly accesses the raw value of this counter. If counter type is of a 32-bit size, it will truncate the value given to 32 bits. This can be significantly more performant for scenarios where the raw value is sufficient. Note that this only works for custom counters created using this component, non-custom counters will throw an exception if this property is accessed.
ReadOnly Returns true if counter is read only (system counter, foreign extensible counter or remote counter)
SingleInstance Indicates if this counter only has a single instance. Some counters may support multiple instances, for example the processor counter will have one instance per processor on the machine.
Site (inherited from Component) Gets or sets the site of the Component.

See Also

PerformanceCounter Class | System.Diagnostics Namespace