通过


IObjectListFieldCollection.IndexOf 方法

定义

返回字段的索引。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

重载

名称 说明
IndexOf(String)

返回字段的索引。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

IndexOf(ObjectListField)

返回字段的索引。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

IndexOf(String)

返回字段的索引。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 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

参数

fieldIDOrTitle
String

要与或Title属性进行比较的DataField字符串。

返回

指定字段的索引。

注解

在此方法的第二个版本中,它会搜索具有 Title 该属性 fieldId 的字段,并返回第一个匹配字段。 如果未找到匹配项,则搜索具有 DataField 属性参数的 fieldID 字段,并返回第一个匹配字段。 否则,它将返回 -1

另请参阅

适用于

IndexOf(ObjectListField)

返回字段的索引。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 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

参数

field
ObjectListField

在指定集合中搜索的字段。

返回

指定字段的索引。

注解

在此方法的第一个版本中,它将返回指定字段的索引。 如果指定的字段不在集合中,则返回 -1

另请参阅

适用于