Langue

IDataReader.GetName(Int32) Méthode

Définition

Il obtient le nom du champ à trouver.

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

Le nom du champ, ou la chaîne vide (« ») s’il n’y a pas de valeur à retourner.

Remarques

Exceptions

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

S’applique à