SqlDataReader.GetFieldType(Int32) Method

Definition

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

public:
 override Type ^ GetFieldType(int i);
public override Type GetFieldType (int i);
override this.GetFieldType : int -> Type
Public Overrides 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