ObjectListItemCollection.IndexOf(ObjectListItem) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳物件中 ObjectListItemCollection 指定項目的索引。 這個 API 已經過時了。 有關如何開發 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。