Export (0) Print
Expand All

DataColumnCollection Methods

The DataColumnCollection type exposes the following members.

  NameDescription
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.)
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(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).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
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

Community Additions

ADD
Show:
© 2014 Microsoft