IObjectListFieldCollection.IndexOf Méthode

Définition

Retourne l'index d'un champ. Cette API est obsolète. Pour plus d’informations sur le développement d’applications mobiles ASP.NET, consultez Applications mobiles & Sites avec ASP.NET.

Surcharges

IndexOf(String)

Retourne l'index d'un champ. Cette API est obsolète. Pour plus d’informations sur le développement d’applications mobiles ASP.NET, consultez Applications mobiles & Sites avec ASP.NET.

IndexOf(ObjectListField)

Retourne l'index d'un champ. Cette API est obsolète. Pour plus d’informations sur le développement d’applications mobiles ASP.NET, consultez Applications mobiles & Sites avec ASP.NET.

IndexOf(String)

Retourne l'index d'un champ. Cette API est obsolète. Pour plus d’informations sur le développement d’applications mobiles ASP.NET, consultez Applications mobiles & Sites avec ASP.NET.

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

Paramètres

fieldIDOrTitle
String

Une chaîne à comparer avec la propriété Title ou DataField.

Retours

Index du champ spécifié.

Remarques

Dans la deuxième version de cette méthode, il recherche un champ avec la Title propriété fieldId et retourne le premier champ correspondant. Si aucune correspondance n’est trouvée, il recherche un champ avec le paramètre de fieldID la DataField propriété et retourne le premier champ correspondant. Sinon, -1est retourné.

Voir aussi

S’applique à

IndexOf(ObjectListField)

Retourne l'index d'un champ. Cette API est obsolète. Pour plus d’informations sur le développement d’applications mobiles ASP.NET, consultez Applications mobiles & Sites avec ASP.NET.

public:
 int IndexOf(System::Web::UI::MobileControls::ObjectListField ^ field);
public int IndexOf (System.Web.UI.MobileControls.ObjectListField field);
abstract member IndexOf : System.Web.UI.MobileControls.ObjectListField -> int
Public Function IndexOf (field As ObjectListField) As Integer

Paramètres

field
ObjectListField

Champ à rechercher dans la collection spécifiée.

Retours

Index du champ spécifié.

Remarques

Dans la première version de cette méthode, elle retourne l’index du champ spécifié. Si le champ spécifié ne se trouve pas dans la collection, il retourne -1.

Voir aussi

S’applique à