ConfigurationElementCollection.ThrowOnDuplicate 속성

정의

ConfigurationElement에 중복 ConfigurationElementCollection를 추가하려고 하면 예외가 throw되는지 여부를 나타내는 값을 가져옵니다.

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

속성 값

ConfigurationElement에 중복 ConfigurationElementCollection를 추가하려고 할 때 예외가 throw되면 true이고, 그렇지 않으면 false입니다.

설명

중복 요소를 추가하면 요소 값이 또는 인 경우 CollectionType 예외가 throw됩니다AddRemoveClearMap.AddRemoveClearMapAlternate

키와 값이 동일한 요소는 중복된 것으로 간주되지 않으며 자동으로 허용됩니다. 키가 동일하지만 값이 다른 요소만 중복으로 간주됩니다. 자세한 내용은 메서드에 대한 설명 섹션을 BaseAdd 참조하세요.

적용 대상