CounterCreationData(String, String, PerformanceCounterType)
Initializes a new instance of the CounterCreationData class, to a counter of the specified type, using the specified counter name and Help strings.
Namespace: System.DiagnosticsAssembly: System in (System.dll)
Syntax
public CounterCreationData( string counterName, string counterHelp, PerformanceCounterType counterType )
Parameters
- counterName
-
Type: StringThe name of the counter, which must be unique within its category.
- counterHelp
-
Type: StringThe text that describes the counter's behavior.
- counterType
-
Type: PerformanceCounterTypeA PerformanceCounterType that identifies the counter's behavior.
Exceptions
Exception | Condition |
---|---|
System.ArgumentNullException | counterHelp is null. |
InvalidEnumArgumentException | You have specified a value for counterType that is not a member of the PerformanceCounterType enumeration. |