共用方式為


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

適用於