PerformanceCounterCategory Methods

The PerformanceCounterCategory type exposes the following members.

  NameDescription
Public method CounterExists(String) Determines whether the specified counter is registered to this category, which is indicated by the CategoryName and MachineName properties.
Public method Static member CounterExists(String, String) Determines whether the specified counter is registered to the specified category on the local computer.
Public method Static member CounterExists(String, String, String) Determines whether the specified counter is registered to the specified category on a remote computer.
Public method Static member Create(String, String, CounterCreationDataCollection) Obsolete. Registers the custom performance counter category containing the specified counters on the local computer.
Public method Static member Create(String, String, PerformanceCounterCategoryType, CounterCreationDataCollection) Registers the custom performance counter category containing the specified counters on the local computer.
Public method Static member Create(String, String, String, String) Obsolete. Registers a custom performance counter category containing a single counter of type NumberOfItems32 on the local computer.
Public method Static member Create(String, String, PerformanceCounterCategoryType, String, String) Registers the custom performance counter category containing a single counter of type NumberOfItems32 on the local computer.
Public method Static member Delete Removes the category and its associated counters from the local computer.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Static member Exists(String) Determines whether the category is registered on the local computer.
Public method Static member Exists(String, String) Determines whether the category is registered on the specified computer.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member GetCategories() Retrieves a list of the performance counter categories that are registered on the local computer.
Public method Static member GetCategories(String) Retrieves a list of the performance counter categories that are registered on the specified computer.
Public method GetCounters() Retrieves a list of the counters in a performance counter category that contains exactly one instance.
Public method GetCounters(String) Retrieves a list of the counters in a performance counter category that contains one or more instances.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetInstanceNames Retrieves the list of performance object instances that are associated with this category.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InstanceExists(String) Determines whether the specified performance object instance exists in the category that is identified by this PerformanceCounterCategory object's CategoryName property.
Public method Static member InstanceExists(String, String) Determines whether a specified category on the local computer contains the specified performance object instance.
Public method Static member InstanceExists(String, String, String) Determines whether a specified category on a specified computer contains the specified performance object instance.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ReadCategory Reads all the counter and performance object instance data that is associated with this performance counter category.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft