Export (0) Print Expand All  How to: Create Custom Performance
Counters  When you create a new counter, you first create a
category, and then specify one or more counters to be included
in it. You can do this in one of the following ways:  There are
two special issues that you should consider when you create
counters and categories. First, you cannot create custom
categories and counters on remote computers. Second, your
interaction with custom counters and categories is restricted to
read-only mode unless you explicitly specify otherwise. In read-
only mode, you cannot increment or decrement them or set the raw
value or other values within them. You can use the ReadOnly
property to set a custom counter to writable mode.  It is
important to note the difference between creating a counter and
creating an instance of the PerformanceCounter component. When
you create a counter, you are creating a new category and its
associated counters in the Windows operating system, rather than
a component in your project or ap