IDataReader.GetName(Int32) Méthode

Définition

Obtient le nom du champ à rechercher.

public:
 System::String ^ GetName(int fieldIndex);
public string GetName (int fieldIndex);
abstract member GetName : int -> string
Public Function GetName (fieldIndex As Integer) As String

Paramètres

fieldIndex
Int32

Index du champ à rechercher.

Retours

Nom du champ ou chaîne vide ("") en l'absence de valeur à retourner.

Remarques

Exceptions

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

S’applique à