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
Available since 2.0
Return to top
Show: