DataColumnCollection::Item Property (String^)
.NET Framework (current version)
Gets the DataColumn from the collection with the specified name.
Assembly: System.Data (in System.Data.dll)
Parameters
- name
-
Type:
System::String^
The ColumnName of the column to return.
Property Value
Type: System.Data::DataColumn^The DataColumn in the collection with the specified ColumnName; otherwise a null value if the DataColumn does not exist.
Item is conditionally case-sensitive when it searches for column names. For example, if one DataColumn is named "mydatacolumn" and another is named "Mydatacolumn", a string used to search for one of the columns is regarded as case-sensitive. However, if "mydatacolumn" exists and "Mydatacolumn" does not, the search string is regarded as case-insensitive.
.NET Framework
Available since 1.1
Available since 1.1
Show: