語言

OrderedDictionary<TKey,TValue>.GetAt(Int32) 方法

定義

取得指定索引的鍵值對。

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。

適用於