SqlDataReader.GetFieldType(Int32) Method

Definition

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

public:
 virtual Type ^ GetFieldType(int i);
public Type GetFieldType (int i);
abstract member GetFieldType : int -> Type
override this.GetFieldType : int -> Type
Public Function GetFieldType (i As Integer) As Type

Parameters

i
Int32

The zero-based column ordinal.

Returns

The Type that is the data type of the object. If the type does not exist on the client, in the case of a User-Defined Type (UDT) returned from the database, GetFieldType returns null.

Implements

Applies to

See also