Add(CounterCreationData) Method
Adds an instance of the CounterCreationData class to the collection.
Namespace: System.DiagnosticsAssembly: System in (System.dll)
Syntax
public int Add( CounterCreationData value )
Parameters
- value
-
Type: CounterCreationDataA CounterCreationData to append to the existing collection.
Exceptions
| Exception | Condition |
|---|---|
| System.ArgumentNullException | value is null. |
| System.ArgumentException | value is not a CounterCreationData object. |