Export (0) Print
Expand All

ConfigurationElementCollection.GetElementKey Method

Note: This method is new in the .NET Framework version 2.0.

Gets the element key for a specified configuration element when overridden in a derived class.

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

protected abstract Object GetElementKey (
	ConfigurationElement element
)
protected abstract Object GetElementKey (
	ConfigurationElement element
)
protected abstract function GetElementKey (
	element : ConfigurationElement
) : Object

Parameters

element

The ConfigurationElement to return the key for.

Return Value

An Object that acts as the key for the specified ConfigurationElement.

The following code example shows how to override GetElementKey method.

protected override Object 
    GetElementKey(ConfigurationElement element)
{
    return ((UrlConfigElement)element).Name;


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

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

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2015 Microsoft