IDataReader.GetFieldType(Int32) Méthode

Définition

Obtient les informations type correspondant au type d’objet retourné par GetValue(Int32).

public:
 Type ^ GetFieldType(int fieldIndex);
public Type GetFieldType (int fieldIndex);
abstract member GetFieldType : int -> Type
Public Function GetFieldType (fieldIndex As Integer) As Type

Paramètres

fieldIndex
Int32

Index du champ à rechercher.

Retours

Informations de type correspondant au type d’objet retourné par GetValue(Int32).

Remarques

Exceptions

Type d'exception Condition
IndexOutOfRangeException L’index passé était en dehors de la plage comprise entre 0 et FieldCount.

S’applique à