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

Definition

Hämtar nyckel/värde-paret vid det angivna indexet.

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)

Parametrar

index
Int32

Det nollbaserade index för paret som ska hämtas.

Returer

Elementet i det angivna indexet.

Undantag

index är mindre än 0 eller större än eller lika med Count.

Gäller för