Export (0) Print
Expand All

ConfigurationElementCollection Constructor (IComparer)

Creates a new instance of the ConfigurationElementCollection class.

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

new : 
        comparer:IComparer -> ConfigurationElementCollection

Parameters

comparer
Type: System.Collections.IComparer

The IComparer comparer to use.

ExceptionCondition
ArgumentNullException

comparer is a null reference (Nothing in Visual Basic).

The IComparer is used to set a comparer to use. For example, you can use a case-insensitive comparer to make the key case insensitive.

.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