NameObjectCollectionBase.KeysCollection.Get Method (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the key at the specified index of the collection.

Namespace:   System.Collections.Specialized
Assembly:  System (in System.dll)

Public Overridable Function Get (
	index As Integer
) As String

Parameters

index
Type: System.Int32

The zero-based index of the key to get from the collection.

Return Value

Type: System.String

A String that contains the key at the specified index of the collection.

Exception Condition
ArgumentOutOfRangeException

index is outside the valid range of indexes for the collection.

This method is an O(1) operation.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show: