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

傳回

Int32

基礎活動集合中 value 的以零起始之索引;如果在集合中找不到,則為 -1。

實作

例外狀況

value 的型別不是 Activity,而且例外狀況物件包含 "Error_InvalidListItem" 錯誤訊息。

適用於