DekGenius.com
[ Team LiB ] Previous Section Next Section

DataColumnCollection serializable

System.Data (system.data.dll) class

This collection contains DataColumn objects for a DataTable . This collection is accessed using the DataTable.Columns property. You can retrieve an individual DataColumn by name or index.

public class DataColumnCollection : InternalDataCollectionBase {
// Public Instance Properties
   public virtual DataColumn this[string name]{get; } 
   public virtual DataColumn this[int index]{get; } 
// Protected Instance Properties
   protected override ArrayList List{get; }              // overrides InternalDataCollectionBase
// Public Instance Methods
   public virtual DataColumn Add(  );  
   public virtual DataColumn Add( string columnName);  
   public virtual DataColumn Add(string columnName, Type type); 
   public virtual DataColumn Add(string columnName, Type type, string expression);
   public void Add( DataColumn column);  
   public void AddRange( DataColumn[ ] columns);  
   public bool CanRemove( DataColumn column);  
   public void Clear(  );  
   public bool Contains( string name);  
   public virtual int IndexOf( DataColumn column);  
   public int IndexOf( string columnName);  
   public void Remove( DataColumn column);  
   public void Remove( string name);  
   public void RemoveAt( int index);  
// Protected Instance Methods
   protected virtual void OnCollectionChanged(System.ComponentModel.CollectionChangeEventArgs ccevent);
   protected internal virtual void OnCollectionChanging(System.ComponentModel.CollectionChangeEventArgs ccevent); 
// Events
   public event CollectionChangeEventHandler CollectionChanged;  
}

Hierarchy

System.Object figs/U2192.gif InternalDataCollectionBase(System.Collections.ICollection, System.Collections.IEnumerable) figs/U2192.gif DataColumnCollection

Returned By

DataTable.Columns

    [ Team LiB ] Previous Section Next Section