NameValueCollection.GetKey(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the key at the specified index of the 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
Parameters
- index
- Int32
The zero-based index of the key to get from the collection.
Returns
A String that contains the key at the specified index of the NameValueCollection, if found; otherwise, null
.
Exceptions
index
is outside the valid range of indexes for the collection.
Remarks
This method is an O(1) operation.
Applies to
See also
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.