IDataRecord.GetFieldType(Int32) Méthode

Définition

Obtient les Type informations correspondant au type de Object ce qui serait retourné par GetValue(Int32).

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

Paramètres

i
Int32

Index du champ à rechercher.

Retours

Informations Type correspondant au type de Object ce qui serait retourné par GetValue(Int32).

Exceptions

L’index passé était en dehors de la plage de 0 à FieldCount.

Remarques

Ces informations peuvent être utilisées pour augmenter les performances en indiquant l’accesseur fortement typé à appeler. (par exemple, l’utilisation GetInt32 est environ dix fois plus rapide que l’utilisation GetValuede .)

S’applique à