471,077 Members | 810 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,077 software developers and data experts.

How to get Performance categories/counters without using category/counter names


I want to make use of the Performance Counter "Connections active"
which falls under the "TCP" Performance object. I'm using the following code
(in C#) to get the performance counter:

PerformanceCounter perfCounter = new
PerformanceCounter("TCP","Connections Active");

Now I know I have to use this code on a non-English Windows box and I
know that some performance categories/counters have different counter names
(non-english names). Is there a way to obtain a performance counter in .NET
w/o specifying the category/counter name explicitly (for.eg. specifying a
performance counter ID instead)?
Nov 16 '05 #1
0 1592

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jim Heavey | last post: by
reply views Thread by Christopher Attard | last post: by
2 posts views Thread by Itay | last post: by
7 posts views Thread by James | last post: by
1 post views Thread by socal | last post: by
reply views Thread by =?Utf-8?B?S2FpIFdhbmc=?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.