DataTableCollection serializable

DataTableCollection serializable

System.Data (system.data.dll) class

This class contains a collection of DataTable objects and is accessed using the DataSet.Tables property. DataTable objects can be retrieved by table name or index.

 public class  DataTableCollection  : InternalDataCollectionBase {  // Public Instance Properties  public DataTable  this[string    name    ]  {get; }     public DataTable  this[int    index    ]  {get; }  // Protected Instance Properties  protected override ArrayList  List  {get; }  // overrides InternalDataCollectionBase   // Public Instance Methods  public virtual DataTable  Add  (  );      public virtual DataTable  Add  ( string   name   );      public virtual void  Add  ( DataTable   table   );      public void  AddRange  ( DataTable[ ]   tables   );      public bool  CanRemove  ( DataTable   table   );      public void  Clear  (  );      public bool  Contains  ( string   name   );      public virtual int  IndexOf  ( DataTable   table   );      public virtual int  IndexOf  ( string   tableName   );      public void  Remove  ( DataTable   table   );      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  ;      public event CollectionChangeEventHandler  CollectionChanging  ;   } 

Hierarchy

System.Object figs/u2192.gif InternalDataCollectionBase(System.Collections.ICollection, System.Collections.IEnumerable) figs/u2192.gif DataTableCollection

Returned By

DataSet.Tables



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