IDataRecord.GetFieldType Method (Int32)
Namespace:
System.Data
Assembly: System.Data (in System.Data.dll)
Assembly: System.Data (in System.Data.dll)
Parameters
- i
-
Type:
System.Int32
The index of the field to find.
Return Value
Type: System.TypeThe 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