語言

ActivityCollection.IList.IndexOf(Object) 方法

定義

取得底層活動集合中 的 Object 零基索引。

 virtual int System.Collections.IList.IndexOf(System::Object ^ value) = System::Collections::IList::IndexOf;
int IList.IndexOf(object value);
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (value As Object) As Integer Implements IList.IndexOf

參數

value
Object

待 Object 索引。

傳回

在底層活動集合中,或若未在集合中找到, value 則 -1 為零為基礎的索引。

實作

例外狀況

該 value 物件的 不是型別 Activity ,且例外物件包含「Error_InvalidListItem」錯誤訊息。

適用於