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

適用於