Expand Minimize

ConfigurationElementCollectionType Enumeration

Specifies the type of a ConfigurationElementCollectionType object.

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

public enum ConfigurationElementCollectionType

Member nameDescription
BasicMapCollections of this type contain elements that apply to the level at which they are specified, and to all child levels. A child level cannot modify the properties specified by a parent element of this type.
AddRemoveClearMapThe default type of ConfigurationElementCollection. Collections of this type contain elements that can be merged across a hierarchy of configuration files. At any particular level within such a hierarchy, add, remove, and clear directives are used to modify any inherited properties and specify new ones.
BasicMapAlternateSame as BasicMap, except that this type causes the ConfigurationElementCollection object to sort its contents such that inherited elements are listed last.
AddRemoveClearMapAlternateSame as AddRemoveClearMap, except that this type causes the ConfigurationElementCollection object to sort its contents such that inherited elements are listed last.

This enumeration contains all the possible return values for the CollectionType property. It is used by the configuration system during run time to correctly merge configuration settings. It is also used when creating a custom class that extends ConfigurationElementCollection.

By default, the type of a ConfigurationElementCollection object is AddRemoveClearMap. If a BasicMap is required, override the ConfigurationElementCollectionType property when extending ConfigurationElementCollection.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft