Export (0) Print
Expand All

PerformanceCounter Members

Represents a Windows NT performance counter component.

The following tables list the members exposed by the PerformanceCounter type.

  Name Description
Public method PerformanceCounter Overloaded. Initializes a new instance of the PerformanceCounter class.
Top

  Name Description
Public property CategoryName Gets or sets the name of the performance counter category for this performance counter.
Public property Container  Gets the IContainer that contains the Component.(Inherited from Component.)
Public property CounterHelp Gets the description for this performance counter.
Public property CounterName Gets or sets the name of the performance counter that is associated with this PerformanceCounter instance.
Public property CounterType Gets the counter type of the associated performance counter.
Public property InstanceLifetime Gets or sets the lifetime of a process.
Public property InstanceName Gets or sets an instance name for this performance counter.
Public property MachineName Gets or sets the computer name for this performance counter
Public property RawValue Gets or sets the raw, or uncalculated, value of this counter.
Public property ReadOnly Gets or sets a value indicating whether this PerformanceCounter instance is in read-only mode.
Public property Site  Gets or sets the ISite of the Component.(Inherited from Component.)
Top

(see also Protected Methods )
  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 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  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (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 Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
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

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method MemberwiseClone  Overloaded. (Inherited from MarshalByRefObject.)
Top

  Name Description
Public event Disposed  Adds an event handler to listen to the Disposed event on the component.(Inherited from Component.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft