Edit

Share via


OrderedDictionary<TKey,TValue>.GetAt(Int32) Method

Definition

Gets the key/value pair at the specified index.

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)

Parameters

index
Int32

The zero-based index of the pair to get.

Returns

The element at the specified index.

Exceptions

index is less than 0 or greater than or equal to Count.

Applies to