NameValueCollection.GetKey(Int32) Metoda

Definice

Získá klíč v zadaném indexu NameValueCollection.

public:
 virtual System::String ^ GetKey(int index);
public virtual string GetKey(int index);
public virtual string? GetKey(int index);
abstract member GetKey : int -> string
override this.GetKey : int -> string
Public Overridable Function GetKey (index As Integer) As String

Parametry

index
Int32

Index klíče založený na nule, který se má získat z kolekce.

Návraty

AString, který obsahuje klíč v zadaném indexu NameValueCollection, pokud je nalezen; v opačném případě . null

Výjimky

index je mimo platný rozsah indexů pro kolekci.

Poznámky

Tato metoda je operace O(1).

Platí pro

Viz také