KeyValueConfigurationCollection.ThrowOnDuplicate Property

 
System_CAPS_noteNote

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

Gets a value indicating whether an attempt to add a duplicate KeyValueConfigurationElement object to the KeyValueConfigurationCollection collection will cause an exception to be thrown.

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

protected override bool ThrowOnDuplicate { get; }

Property Value

Type: System.Boolean

true if an attempt to add a duplicate KeyValueConfigurationElement to the KeyValueConfigurationCollection will cause an exception to be thrown; otherwise, false.

.NET Framework
Available since 2.0
Return to top
Show: