Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DataTableCollection Methods

The DataTableCollection type exposes the following members.

  NameDescription
Public method Add() Creates a new DataTable object by using a default name and adds it to the collection.
Public method Add(DataTable) Adds the specified DataTable to the collection.
Public method Add(String) Creates a DataTable object by using the specified name and adds it to the collection.
Public method Add(String, String) Creates a DataTable object by using the specified name and adds it to the collection.
Public method AddRange Copies the elements of the specified DataTable array to the end of the collection.
Public method CanRemove Verifies whether the specified DataTable object can be removed from the collection.
Public method Clear Clears the collection of all DataTable objects.
Public method Contains(String) Gets a value that indicates whether a DataTable object with the specified name exists in the collection.
Public method Contains(String, String) Gets a value that indicates whether a DataTable object with the specified name and table namespace exists in the collection.
Public method CopyTo(Array, Int32) Copies all the elements of the current InternalDataCollectionBase to a one-dimensional Array, starting at the specified InternalDataCollectionBase index. (Inherited from InternalDataCollectionBase.)
Public method CopyTo(DataTable[], Int32) Copies all the elements of the current DataTableCollection to a one-dimensional Array, starting at the specified destination array index.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Gets an IEnumerator for the collection. (Inherited from InternalDataCollectionBase.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IndexOf(DataTable) Gets the index of the specified DataTable object.
Public method IndexOf(String) Gets the index in the collection of the DataTable object with the specified name.
Public method IndexOf(String, String) Gets the index in the collection of the specified DataTable object.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove(DataTable) Removes the specified DataTable object from the collection.
Public method Remove(String) Removes the DataTable object with the specified name from the collection.
Public method Remove(String, String) Removes the DataTable object with the specified name from the collection.
Public method RemoveAt Removes the DataTable object at the specified index from the collection.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.