共用方式為


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

定義

決定 IList<T>中特定專案的索引。

 virtual int System.Collections.Generic.IList<System.Collections.Generic.KeyValuePair<TKey,TValue>>.IndexOf(System::Collections::Generic::KeyValuePair<TKey, TValue> item) = System::Collections::Generic::IList<System::Collections::Generic::KeyValuePair<TKey, TValue>>::IndexOf;
int IList<KeyValuePair<TKey,TValue>>.IndexOf (System.Collections.Generic.KeyValuePair<TKey,TValue> item);
abstract member System.Collections.Generic.IList<System.Collections.Generic.KeyValuePair<TKey,TValue>>.IndexOf : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> int
override this.System.Collections.Generic.IList<System.Collections.Generic.KeyValuePair<TKey,TValue>>.IndexOf : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> int
Function IndexOf (item As KeyValuePair(Of TKey, TValue)) As Integer Implements IList(Of KeyValuePair(Of TKey, TValue)).IndexOf

參數

item
KeyValuePair<TKey,TValue>

IList<T>中尋找的物件。

傳回

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

實作

適用於