SortedList<TKey,TValue>.GetKeyAtIndex(Int32) 方法

定义

获取与指定索引对应的键。

public:
 TKey GetKeyAtIndex(int index);
public TKey GetKeyAtIndex (int index);
member this.GetKeyAtIndex : int -> 'Key
Public Function GetKeyAtIndex (index As Integer) As TKey

参数

index
Int32

整个 SortedList<TKey,TValue>中键的从零开始的索引。

返回

TKey

与指定索引对应的键。

例外

指定的索引在范围外。

适用于