Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PerformanceCounter Methods

The PerformanceCounter type exposes the following members.

  Name Description
Public method BeginInit Begins the initialization of a PerformanceCounter instance used on a form or by another component. The initialization occurs at runtime.
Public method Close Closes the performance counter and frees all the resources allocated by this performance counter instance.
Public method Static member CloseSharedResources Frees the performance counter library shared state allocated by the counters.
Public method 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.)
Public method Decrement Decrements the associated performance counter by one through an efficient atomic operation.
Public method Dispose() Releases all resources used by the Component. (Inherited from Component.)
Public method EndInit Ends the initialization of a PerformanceCounter instance that is used on a form or by another component. The initialization occurs at runtime.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Increment Increments the associated performance counter by one through an efficient atomic operation.
Public method IncrementBy Increments or decrements the value of the associated performance counter by a specified amount through an efficient atomic operation.
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method NextSample Obtains a counter sample, and returns the raw, or uncalculated, value for it.
Public method NextValue Obtains a counter sample and returns the calculated value for it.
Public method RemoveInstance Deletes the category instance specified by the PerformanceCounter object InstanceName property.
Public method ToString Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.