System.Diagnostics (system.dll)class

This class is a strongly-typed collection of CounterCreationData objects. Use Add( ) and AddRange( ) to add single or multiple values respectively to the end of the collection. Insert( ) allows you to add an item at any position in the collection. Remove( ) and RemoveAt( ) allow you to remove items from the collection.

public class CounterCreationDataCollection : CollectionBase {
// Public Constructors
   public CounterCreationDataCollection( );
   public CounterCreationDataCollection(CounterCreationData[ ] value);
   public CounterCreationDataCollection(CounterCreationDataCollection value);
// Public Instance Properties
   public CounterCreationData this[int index]{set; get; }
// Public Instance Methods
   public int Add(CounterCreationData value);
   public void AddRange(CounterCreationData[ ] value);
   public void AddRange(CounterCreationDataCollection value);
   public bool Contains(CounterCreationData value);
   public void CopyTo(CounterCreationData[ ] array,  int index);
   public int IndexOf(CounterCreationData value);
   public void Insert(int index, CounterCreationData value);
   public virtual void Remove(CounterCreationData value);
// Protected Instance Methods
   protected override void OnInsert(int index, object value);
// overrides System.Collections.CollectionBase


System.Object System.Collections.CollectionBase(System.Collections.IList, System.Collections.ICollection, System.Collections.IEnumerable) CounterCreationDataCollection

Returned By


Passed To

PerformanceCounterCategory.Create( )

Figure 29-2. More classes from the System.Diagnostics namespace

    Part II: Programming with the .NET Framework
    Part IV: API Quick Reference
    Chapter 26. System