The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
DataTableReader::GetDataTypeName Method (Int32)
.NET Framework (current version)
Gets a string representing the data type of the specified column.
Assembly: System.Data (in System.Data.dll)
Parameters
- ordinal
-
Type:
System::Int32
The zero-based column ordinal.
Implements
IDataRecord::GetDataTypeName(Int32)| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The index passed was outside the range of 0 to FieldCount - 1. |
| InvalidOperationException | An attempt was made to read or access a column in a closed DataTableReader. |
The GetDataTypeName method always returns the type of the underlying DataColumn instead of a provider-specific type.
.NET Framework
Available since 2.0
Available since 2.0
Show: