ExtensionElementCollection.ThrowOnDuplicate 属性
定义
获取一个值,该值指示尝试向 ConfigurationElement 添加重复的 ExtensionElementCollection 是否会导致引发异常。Gets a value indicating whether an attempt to add a duplicate ConfigurationElement to the ExtensionElementCollection will cause an exception to be thrown.
protected:
virtual property bool ThrowOnDuplicate { bool get(); };
protected override bool ThrowOnDuplicate { get; }
member this.ThrowOnDuplicate : bool
Protected Overrides ReadOnly Property ThrowOnDuplicate As Boolean
属性值
如果尝试向 true 添加重复的 ConfigurationElement 会导致引发异常,则为 ExtensionElementCollection;否则为 false。true if an attempt to add a duplicate ConfigurationElement to the ExtensionElementCollection will cause an exception to be thrown; otherwise, false.