ConfigurationElementCollection.ThrowOnDuplicate 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
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 참조하세요.