PerformanceCounter Constructor
.NET Framework 4.5
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.
| 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. |
- SecurityAction.LinkDemand
for full trust for the immediate caller. This class cannot be used by partially trusted code.