Name
DataTableCollection
Synopsis
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[stringname
]{get; } public DataTable this[intindex
]{get; } // Protected Instance Properties protected override ArrayList List{get; } // overrides InternalDataCollectionBase // Public Instance Methods public virtual DataTable Add( ); public virtual DataTable Add(stringname
); public virtual void Add(DataTabletable
); public void AddRange(DataTable[ ]tables
); public bool CanRemove(DataTabletable
); public void Clear( ); public bool Contains(stringname
); public virtual int IndexOf(DataTabletable
); public virtual int IndexOf(stringtableName
); public void Remove(DataTabletable
); public void Remove(stringname
); public void RemoveAt(intindex
); // Protected Instance Methods protected virtual void OnCollectionChanged(System.ComponentModel.CollectionChangeEventArgsccevent
); protected internal virtual void OnCollectionChanging(System.ComponentModel.CollectionChangeEventArgsccevent
); // Events public event CollectionChangeEventHandler CollectionChanged; public event CollectionChangeEventHandler CollectionChanging; }
Hierarchy
System.Object
→
InternalDataCollectionBase(System.Collections.ICollection
, System.Collections.IEnumerable)
→
DataTableCollection
Returned By
DataSet.Tables ...
Get ADO.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.