.NET Framework Class Library
ConfigurationElementCollection..::.BaseGetKey Method

Updated: November 2007

Gets the key for the ConfigurationElement at the specified index location.

Namespace:  System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

Visual Basic (Declaration)
Protected Friend Function BaseGetKey ( _
    index As Integer _
) As Object
Visual Basic (Usage)
Dim index As Integer
Dim returnValue As Object

returnValue = Me.BaseGetKey(index)
C#
protected internal Object BaseGetKey(
    int index
)
Visual C++
protected public:
Object^ BaseGetKey(
    int index
)
J#
protected Object BaseGetKey(
    int index
)
JScript
protected internal function BaseGetKey(
    index : int
) : Object

Parameters

index
Type: System..::.Int32

The index location for the ConfigurationElement.

Return Value

Type: System..::.Object

The key for the specified ConfigurationElement.

ExceptionCondition
ConfigurationErrorsException

index is less than 0.

- or -

There is no ConfigurationElement at the specified index.

Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Page view tracker