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.
IDataRecord::GetFieldType Method (Int32)
.NET Framework (current version)
Namespace:
System.Data
Assembly: System.Data (in System.Data.dll)
Return to top
Assembly: System.Data (in System.Data.dll)
Parameters
- i
-
Type:
System::Int32
The index of the field to find.
Return Value
Type: System::Type^The Type information corresponding to the type of Object that would be returned from GetValue.
| Exception | Condition |
|---|---|
| IndexOutOfRangeException | The index passed was outside the range of 0 through FieldCount. |
This information can be used to increase performance by indicating the strongly-typed accessor to call. (for example, using GetInt32 is roughly ten times faster than using GetValue.)
.NET Framework
Available since 1.1
Available since 1.1
Show: