Langue

IDataReader.GetFieldType(Int32) Méthode

Définition

Obtient l’information de 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

L’information de type correspondant au type d’objet qui serait retourné depuis GetValue(Int32).

Remarques

Exceptions

Type d'exception Pathologie
ExceptionIndexOutofRange L’index passé était en dehors de la plage de 0 à FieldCount.

S’applique à