ConfigurationElementCollection.CollectionType Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the type of the ConfigurationElementCollection.

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

public virtual ConfigurationElementCollectionType CollectionType { get; }

The type will be either a BasicMap or an AddRemoveClearMap field. For more information, see ConfigurationElementCollectionType.

The following code example shows how to get the CollectionType property.

public override ConfigurationElementCollectionType CollectionType
        return ConfigurationElementCollectionType.AddRemoveClearMap;

.NET Framework
Available since 2.0
Return to top