共用方式為


OrderedDictionary<TKey,TValue>.ValueCollection.IList.IndexOf 方法

定義

決定 IList中特定專案的索引。

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

參數

value
Object

IList中尋找的物件。

傳回

在清單中找到時,value 的索引;否則為 -1。

實作

適用於