PerformanceCounter Methods
.NET Framework 4.5
The PerformanceCounter type exposes the following members.
| Name | Description | |
|---|---|---|
|
BeginInit | Begins the initialization of a PerformanceCounter instance used on a form or by another component. The initialization occurs at runtime. |
|
Close | Closes the performance counter and frees all the resources allocated by this performance counter instance. |
|
CloseSharedResources | Frees the performance counter library shared state allocated by the counters. |
|
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
|
Decrement | Decrements the associated performance counter by one through an efficient atomic operation. |
|
Dispose() | Releases all resources used by the Component. (Inherited from Component.) |
|
EndInit | Ends the initialization of a PerformanceCounter instance that is used on a form or by another component. The initialization occurs at runtime. |
|
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
Increment | Increments the associated performance counter by one through an efficient atomic operation. |
|
IncrementBy | Increments or decrements the value of the associated performance counter by a specified amount through an efficient atomic operation. |
|
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
NextSample | Obtains a counter sample, and returns the raw, or uncalculated, value for it. |
|
NextValue | Obtains a counter sample and returns the calculated value for it. |
|
RemoveInstance | Deletes the category instance specified by the PerformanceCounter object InstanceName property. |
|
ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.) |