Export (0) Print
Expand All

SqlDataReader.GetFieldType Method

Gets the Type that is the data type of the object.

[Visual Basic]
Public Overridable Function GetFieldType( _
   ByVal i As Integer _
) As Type Implements IDataRecord.GetFieldType
[C#]
public virtual Type GetFieldType(
 int i
);
[C++]
public: virtual Type* GetFieldType(
 int i
);
[JScript]
public function GetFieldType(
   i : int
) : Type;

Parameters

i
The zero-based column ordinal.

Return Value

The Type that is the data type of the object.

Implements

IDataRecord.GetFieldType

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

SqlDataReader Class | SqlDataReader Members | System.Data.SqlClient Namespace

Show:
© 2014 Microsoft