Export (0) Print
Expand All

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
[C#]
public virtual string Get(
 int index
);
[C++]
public: virtual String* Get(
 int index
);
[JScript]
public function Get(
   index : int
) : String;

Parameters

index
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.

Exceptions

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

Requirements

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

Show:
© 2014 Microsoft