PerformanceCounter Constructor

Initializes a new instance of the PerformanceCounter class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method PerformanceCounter() Initializes a new, read-only instance of the PerformanceCounter class, without associating the instance with any system or custom performance counter.
Public method PerformanceCounter(String, String) Initializes a new, read-only instance of the PerformanceCounter class and associates it with the specified system or custom performance counter on the local computer. This constructor requires that the category have a single instance.
Public method PerformanceCounter(String, String, Boolean) Initializes a new, read-only or read/write instance of the PerformanceCounter class and associates it with the specified system or custom performance counter on the local computer. This constructor requires that the category contain a single instance.
Public method PerformanceCounter(String, String, String) Initializes a new, read-only instance of the PerformanceCounter class and associates it with the specified system or custom performance counter and category instance on the local computer.
Public method PerformanceCounter(String, String, String, Boolean) Initializes a new, read-only or read/write instance of the PerformanceCounter class and associates it with the specified system or custom performance counter and category instance on the local computer.
Public method PerformanceCounter(String, String, String, String) Initializes a new, read-only instance of the PerformanceCounter class and associates it with the specified system or custom performance counter and category instance, on the specified computer.
Top

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft