ConfigurationCollectionAttribute.RemoveItemName Property

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

Gets or sets the name for the remove configuration element.

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

public string RemoveItemName { get; set; 
/** @property */
public String get_RemoveItemName ()

/** @property */
public void set_RemoveItemName (String value)

public function get RemoveItemName () : String

public function set RemoveItemName (value : String)

Property Value

The name that replaces the standard name "remove" for the configuration element.

The RemoveItemName property allows you to assign a different name to the remove configuration element. For instance, you could use "removeUrl" instead of "remove".

The following example shows how to use the RemoveItemName property.

// Declare the urls collection property.
// Note: the "IsDefaultCollection = false" instructs 
// .NET Framework to build a nested section of 
// the kind <urls> ...</urls>.
[ConfigurationProperty("urls", IsDefaultCollection = false)]
public UrlsCollection Urls

        UrlsCollection urlsCollection = 
        return urlsCollection;

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