Billy
Billy

Reputation: 107

How do you delete a performance counter

I know how to delete a Performance Category; which then also deletes all of the counters inside that Category, but how do you delete a single Counter within a Category in C# (without hacking the registry)?

Upvotes: 7

Views: 2507

Answers (1)

Adam S
Adam S

Reputation: 3125

From what I've read on Performance Counter Categories, you can't delete or add performance counters to a custom category after it is created. You need to delete and recreate the category or create a new one. There is some information regarding altering categories at this MSDN page.

Upvotes: 2

Related Questions