This documentation is archived and is not being maintained.

NameObjectCollectionBase.KeysCollection.Get Method

Gets the key at the specified index of the collection.

[Visual Basic]
Public Overridable Function Get( _
   ByVal index As Integer _
) As String
public virtual string Get(
 int index
public: virtual String* Get(
 int index
public function Get(
   index : int
) : String;


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

Return Value

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


Exception Type Condition
ArgumentOutOfRangeException index is outside the valid range of indexes for the collection.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

NameObjectCollectionBase.KeysCollection Class | NameObjectCollectionBase.KeysCollection Members | System.Collections.Specialized Namespace