System.Diagnostics.PerformanceCounterCategory
Represents a performance object, which defines a category of performance counters.
Gets the category's help text.
Gets or sets the name of the performance object that defines this category.
Gets the performance counter category type.
Gets or sets the name of the computer on which this category exists.
public PerformanceCounterCategory()
Initializes a new instance of the PerformanceCounterCategory class, leaves the CategoryName property empty, and sets the MachineName property to the local computer.
Initializes a new instance of the PerformanceCounterCategory class, sets the CategoryName property to the specified value, and sets the MachineName property to the local computer.
Initializes a new instance of the PerformanceCounterCategory class and sets the CategoryName and MachineName properties to the specified values.
Determines whether the specified counter is registered to the specified category on the local computer.
Determines whether the specified counter is registered to the specified category on a remote computer.
public static PerformanceCounterCategory Create(string categoryName, string categoryHelp, CounterCreationDataCollection counterData)
Registers the custom performance counter category containing the specified counters on the local computer.
public static PerformanceCounterCategory Create(string categoryName, string categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData)
Registers the custom performance counter category containing the specified counters on the local computer.
public static PerformanceCounterCategory Create(string categoryName, string categoryHelp, PerformanceCounterCategoryType categoryType, string counterName, string counterHelp)
Registers the custom performance counter category containing a single counter of type NumberOfItems32 on the local computer.
public static PerformanceCounterCategory Create(string categoryName, string categoryHelp, string counterName, string counterHelp)
Registers a custom performance counter category containing a single counter of type NumberOfItems32 on the local computer.
Removes the category and its associated counters from the local computer.
Determines whether the category is registered on the local computer.
Determines whether the category is registered on the specified computer.
Retrieves a list of the performance counter categories that are registered on the local computer.
Retrieves a list of the performance counter categories that are registered on the specified computer.
Determines whether a specified category on the local computer contains the specified performance object instance.
Determines whether a specified category on a specified computer contains the specified performance object instance.
Determines whether the specified counter is registered to this category, which is indicated by the CategoryName and MachineName properties.
Retrieves a list of the counters in a performance counter category that contains exactly one instance.
Retrieves a list of the counters in a performance counter category that contains one or more instances.
Retrieves the list of performance object instances that are associated with this category.
Determines whether the specified performance object instance exists in the category that is identified by this PerformanceCounterCategory object's CategoryName property.
Reads all the counter and performance object instance data that is associated with this performance counter category.