PerformanceCounter Constructor

 

Initializes a new instance of the PerformanceCounter class.

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

NameDescription
System_CAPS_pubmethodPerformanceCounter()

Initializes a new, read-only instance of the PerformanceCounter class, without associating the instance with any system or custom performance counter.

System_CAPS_pubmethodPerformanceCounter(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.

System_CAPS_pubmethodPerformanceCounter(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.

System_CAPS_pubmethodPerformanceCounter(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.

System_CAPS_pubmethodPerformanceCounter(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.

System_CAPS_pubmethodPerformanceCounter(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.

SecurityAction.LinkDemand

for full trust for the immediate caller. This class cannot be used by partially trusted code.

Return to top
Show: