PerformanceCounterCategory Methods
.NET Framework 4.5
The PerformanceCounterCategory type exposes the following members.
| Name | Description | |
|---|---|---|
|
CounterExists(String) | Determines whether the specified counter is registered to this category, which is indicated by the CategoryName and MachineName properties. |
|
CounterExists(String, String) | Determines whether the specified counter is registered to the specified category on the local computer. |
|
CounterExists(String, String, String) | Determines whether the specified counter is registered to the specified category on a remote computer. |
|
Create(String, String, CounterCreationDataCollection) | Obsolete. Registers the custom performance counter category containing the specified counters on the local computer. |
|
Create(String, String, PerformanceCounterCategoryType, CounterCreationDataCollection) | Registers the custom performance counter category containing the specified counters on the local computer. |
|
Create(String, String, String, String) | Obsolete. Registers a custom performance counter category containing a single counter of type NumberOfItems32 on the local computer. |
|
Create(String, String, PerformanceCounterCategoryType, String, String) | Registers the custom performance counter category containing a single counter of type NumberOfItems32 on the local computer. |
|
Delete | Removes the category and its associated counters from the local computer. |
|
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
Exists(String) | Determines whether the category is registered on the local computer. |
|
Exists(String, String) | Determines whether the category is registered on the specified computer. |
|
GetCategories() | Retrieves a list of the performance counter categories that are registered on the local computer. |
|
GetCategories(String) | Retrieves a list of the performance counter categories that are registered on the specified computer. |
|
GetCounters() | Retrieves a list of the counters in a performance counter category that contains exactly one instance. |
|
GetCounters(String) | Retrieves a list of the counters in a performance counter category that contains one or more instances. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetInstanceNames | Retrieves the list of performance object instances that are associated with this category. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
InstanceExists(String) | Determines whether the specified performance object instance exists in the category that is identified by this PerformanceCounterCategory object's CategoryName property. |
|
InstanceExists(String, String) | Determines whether a specified category on the local computer contains the specified performance object instance. |
|
InstanceExists(String, String, String) | Determines whether a specified category on a specified computer contains the specified performance object instance. |
|
ReadCategory | Reads all the counter and performance object instance data that is associated with this performance counter category. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |