IDataReader.GetFieldType(Int32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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. |