This topic has not yet been rated - Rate this topic

DataColumnCollection Methods

The DataColumnCollection type exposes the following members.

  Name Description
Public method Add() Creates and adds a DataColumn object to the DataColumnCollection.
Public method Add(DataColumn) Creates and adds the specified DataColumn object to the DataColumnCollection.
Public method Add(String) Creates and adds a DataColumn object that has the specified name to the DataColumnCollection.
Public method Add(String, Type) Creates and adds a DataColumn object that has the specified name and type to the DataColumnCollection.
Public method Add(String, Type, String) Creates and adds a DataColumn object that has the specified name, type, and expression to the DataColumnCollection.
Public method AddRange Copies the elements of the specified DataColumn array to the end of the collection.
Public method CanRemove Checks whether a specific column can be removed from the collection.
Public method Clear Clears the collection of any columns.
Public method Contains Checks whether the collection contains a column with the specified name.
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(DataColumn[], Int32) Copies the entire collection into an existing array, starting at a specified index within the array.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetEnumerator Gets an IEnumerator for the collection. (Inherited from InternalDataCollectionBase.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IndexOf(DataColumn) Gets the index of a column specified by name.
Public method IndexOf(String) Gets the index of the column with the specific name (the name is not case sensitive).
Public method Remove(DataColumn) Removes the specified DataColumn object from the collection.
Public method Remove(String) Removes the DataColumn object that has the specified name from the collection.
Public method RemoveAt Removes the column 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
Show:
© 2014 Microsoft. All rights reserved.