KeyValueConfigurationCollection::ThrowOnDuplicate Property

 

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:
property bool ThrowOnDuplicate {
	virtual bool get() override;
}

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: