AddElementName Property

ConfigurationElementCollection.AddElementName Property

Gets or sets the name of the ConfigurationElement to associate with the add operation in the ConfigurationElementCollection when overridden in a derived class.

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

protected internal string AddElementName { get; set; }
/** @property */
protected String get_AddElementName ()

/** @property */
protected void set_AddElementName (String value)

protected internal function get AddElementName () : String

protected internal function set AddElementName (value : String)

Not applicable.

Property Value

The name of the element.

Exception typeCondition


The selected value starts with the reserved prefix "config" or "lock".

The following code example shows how to use the AddElementName property.

public new string AddElementName
    { return base.AddElementName; }

    { base.AddElementName = value; }


Windows 98, Windows Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

© 2016 Microsoft