Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PerformanceCounter Constructor

Initializes a new instance of the PerformanceCounter class.

Name Description
PerformanceCounter () Initializes a new, read-only instance of the PerformanceCounter class, without associating the instance with any system or custom performance counter.
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.
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.
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.
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.
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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft