語言

ObjectListItemCollection.IndexOf(ObjectListItem) 方法

定義

回傳物件中 ObjectListItemCollection 指定項目的索引。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

public:
 int IndexOf(System::Web::UI::MobileControls::ObjectListItem ^ item);
public int IndexOf(System.Web.UI.MobileControls.ObjectListItem item);
member this.IndexOf : System.Web.UI.MobileControls.ObjectListItem -> int
Public Function IndexOf (item As ObjectListItem) As Integer

參數

item
ObjectListItem

收藏中值得搜尋的物品。

傳回

指定項目在 ObjectListItemCollection.

備註

回傳指定項目的整數索引。 若找不到指定欄位,該方法回 IndexOf 傳 -1。

適用於

另請參閱