DataColumnCollection serializable

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



ADO. NET in a Nutshell
ADO.NET in a Nutshell
ISBN: 0596003617
EAN: 2147483647
Year: 2005
Pages: 415

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net