Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ConfigurationElementCollection.CollectionType Property

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
{
    get
    {
        return ConfigurationElementCollectionType.AddRemoveClearMap;
    }
}

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft