KeyValueConfigurationCollection.ThrowOnDuplicate Eigenschap

Definitie

Hiermee wordt een waarde opgehaald die aangeeft of een poging om een duplicaatobject KeyValueConfigurationElement aan de KeyValueConfigurationCollection verzameling toe te voegen, een uitzondering veroorzaakt.

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

Waarde van eigenschap

trueals een poging om een duplicaat KeyValueConfigurationElement toe te voegen, KeyValueConfigurationCollection wordt er een uitzondering gegenereerd; anders. false

Van toepassing op