OrderedDictionary<TKey,TValue>.GetAt(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定索引處的索引鍵/值組。
public:
System::Collections::Generic::KeyValuePair<TKey, TValue> GetAt(int index);
public System.Collections.Generic.KeyValuePair<TKey,TValue> GetAt (int index);
member this.GetAt : int -> System.Collections.Generic.KeyValuePair<'Key, 'Value>
Public Function GetAt (index As Integer) As KeyValuePair(Of TKey, TValue)
參數
- index
- Int32
要取得之配對之以零起始的索引。
傳回
位於指定索引處的專案。
例外狀況
index
小於 0 或大於或等於 Count。