語言

MobileListItemCollection.IndexOf(MobileListItem) 方法

定義

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

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

參數

item
MobileListItem

收藏中值得搜尋的物品。

傳回

集合中指定項目的索引。

備註

取得指定項目的整數索引。 若指定的項目不在集合中,該 IndexOf 方法會回傳 -1。

適用於

另請參閱