Share via


KeyValueConfigurationCollection.ThrowOnDuplicate Propriété

Définition

Obtient une valeur indiquant si une tentative d'ajout d'un objet KeyValueConfigurationElement dupliqué à la collection KeyValueConfigurationCollection provoquera la levée d'une exception.

protected:
 virtual property bool ThrowOnDuplicate { bool get(); };
protected override bool ThrowOnDuplicate { get; }
member this.ThrowOnDuplicate : bool
Protected Overrides ReadOnly Property ThrowOnDuplicate As Boolean

Valeur de propriété

true si une tentative d'ajout d'un KeyValueConfigurationElement dupliqué au KeyValueConfigurationCollection provoquera la levée d'une exception ; sinon, false.

S’applique à