PerformanceCounter Members

Represents a Windows NT performance counter component.

The PerformanceCounter type exposes the following members.

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

  NameDescription
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 Overloaded. Releases the resources used by the 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 Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
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.)
Protected method MemberwiseClone Overloaded.
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

  NameDescription
Public field Static member DefaultFileMappingSize Obsolete. Specifies the size, in bytes, of the global memory shared by performance counters. The default size is 524,288 bytes.
Top

  NameDescription
Protected property CanRaiseEvents Gets a value indicating whether the component can raise an event. (Inherited from Component.)
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.
Protected property DesignMode Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Protected property Events Gets the list of event handlers that are attached to this Component. (Inherited from Component.)
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

  NameDescription
Public event Disposed Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft