Question:You would like to create a custom performance counter for an application that you created
recently.
To do this, you decide to create a custom category named ApplicationPerformance and a
performance
counter named HitNumber.
You need to ensure that this counter is shared across numerous applications.
What should you do? - (VB.Net) 

A Use the following code:
PerformanceCounterCategory.Create(\"ApplicationPerformance\", \"ApplicationPerformanceHelp\",
_
PerformanceCounterCategoryType.MultiInstance, \"HitNumber\", \"HitNumberHelp\") 

B Use the following code:
PerformanceCounterCategory.Create(\"HitNumber\", \"HitNumberHelp\", _
PerformanceCounterCategoryType.SingleInstance, \"ApplicationPerformance\",
\"ApplicationPerformanceHelp\") 

C Use the following code:
PerformanceCounterCategory.Create(\"HitNumber\", \"HitNumberHelp\", _
PerformanceCounterCategoryType.MultiInstance, \"ApplicationPerformance\",
\"ApplicationPerformanceHelp\") 

D Use the following code:
PerformanceCounterCategory.Create("ApplicationPerformance", "ApplicationPerformanceHelp",
_
PerformanceCounterCategoryType.SingleInstance, "HitNumber", "HitNumberHelp") 

+ Answer
+ Report
Total Preview: 761

Copyright © 2024. Powered by Intellect Software Ltd