KeyValueConfigurationCollection.ThrowOnDuplicate 属性

定义

获取一个值,该值指示尝试向 KeyValueConfigurationElement 集合中添加重复的 KeyValueConfigurationCollection 对象是否会导致引发异常。

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

属性值

如果尝试向 true 添加重复的 KeyValueConfigurationElement 会导致引发异常,则为 KeyValueConfigurationCollection;否则为 false

适用于