SqlDataReader.GetFieldType Method (Int32)

 

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

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

public override Type GetFieldType(
	int i
)

Parameters

i
Type: System.Int32

The zero-based column ordinal.

Return Value

Type: System.Type

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.

.NET Framework
Available since 1.1
Return to top
Show: