DataColumnCollection Methods
.NET Framework 4.5
The DataColumnCollection type exposes the following members.
| Name | Description | |
|---|---|---|
|
Add() | Creates and adds a DataColumn object to the DataColumnCollection. |
|
Add(DataColumn) | Creates and adds the specified DataColumn object to the DataColumnCollection. |
|
Add(String) | Creates and adds a DataColumn object that has the specified name to the DataColumnCollection. |
|
Add(String, Type) | Creates and adds a DataColumn object that has the specified name and type to the DataColumnCollection. |
|
Add(String, Type, String) | Creates and adds a DataColumn object that has the specified name, type, and expression to the DataColumnCollection. |
|
AddRange | Copies the elements of the specified DataColumn array to the end of the collection. |
|
CanRemove | Checks whether a specific column can be removed from the collection. |
|
Clear | Clears the collection of any columns. |
|
Contains | Checks whether the collection contains a column with the specified name. |
|
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.) |
|
CopyTo(DataColumn[], Int32) | Copies the entire collection into an existing array, starting at a specified index within the array. |
|
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
GetEnumerator | Gets an IEnumerator for the collection. (Inherited from InternalDataCollectionBase.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
IndexOf(DataColumn) | Gets the index of a column specified by name. |
|
IndexOf(String) | Gets the index of the column with the specific name (the name is not case sensitive). |
|
Remove(DataColumn) | Removes the specified DataColumn object from the collection. |
|
Remove(String) | Removes the DataColumn object that has the specified name from the collection. |
|
RemoveAt | Removes the column at the specified index from the collection. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |