24 types derived from ConfigurationElement
Microsoft.Build (3)
ToolsetElement.cs (3)
118internal sealed class ToolsetElement : ConfigurationElement 302internal sealed class ExtensionsPathElement : ConfigurationElement 474internal sealed class PropertyElement : ConfigurationElement
Microsoft.Build.Utilities.Core (3)
ToolsetElement.cs (3)
118internal sealed class ToolsetElement : ConfigurationElement 302internal sealed class ExtensionsPathElement : ConfigurationElement 474internal sealed class PropertyElement : ConfigurationElement
System.Configuration.ConfigurationManager (17)
System\Configuration\ConfigurationElementCollection.cs (1)
11public abstract class ConfigurationElementCollection : ConfigurationElement, ICollection
System\Configuration\ConfigurationSection.cs (1)
11public abstract class ConfigurationSection : ConfigurationElement
System\Configuration\ConnectionStringSettings.cs (1)
6public sealed class ConnectionStringSettings : ConfigurationElement
System\Configuration\DateTimeConfigurationElement.cs (1)
6internal sealed class DateTimeConfigurationElement : ConfigurationElement
System\Configuration\IdnElement.cs (1)
9public sealed class IdnElement : ConfigurationElement
System\Configuration\IriParsingElement.cs (1)
6public sealed class IriParsingElement : ConfigurationElement
System\Configuration\KeyValueConfigurationElement.cs (1)
6public class KeyValueConfigurationElement : ConfigurationElement
System\Configuration\NameValueConfigurationElement.cs (1)
6public sealed class NameValueConfigurationElement : ConfigurationElement
System\Configuration\ProtectedProviderSettings.cs (1)
6public class ProtectedProviderSettings : ConfigurationElement
System\Configuration\ProviderSettings.cs (1)
9public sealed class ProviderSettings : ConfigurationElement
System\Configuration\SchemeSettingElement.cs (1)
6public sealed class SchemeSettingElement : ConfigurationElement
System\Configuration\SettingElement.cs (1)
8public sealed class SettingElement : ConfigurationElement
System\Configuration\SettingValueElement.cs (1)
8public sealed class SettingValueElement : ConfigurationElement
System\Diagnostics\SourceElementsCollection.cs (1)
33internal sealed class SourceElement : ConfigurationElement
System\Diagnostics\SwitchElementsCollection.cs (1)
20internal sealed class SwitchElement : ConfigurationElement
System\Diagnostics\TraceSection.cs (1)
8internal sealed class TraceSection : ConfigurationElement
System\Diagnostics\TypedElement.cs (1)
7internal class TypedElement : ConfigurationElement
System.Runtime.Caching (1)
System\Runtime\Caching\Configuration\MemoryCacheElement.cs (1)
14internal sealed class MemoryCacheElement : ConfigurationElement
198 references to ConfigurationElement
Microsoft.Build (15)
ToolsetElement.cs (15)
232protected override object GetElementKey(ConfigurationElement element) 241protected override ConfigurationElement CreateNewElement() 249protected override void BaseAdd(int index, ConfigurationElement element) 259protected override void BaseAdd(ConfigurationElement element) 271private void UpdateOSMap(ConfigurationElement element) 414protected override ConfigurationElement CreateNewElement() 422protected override void BaseAdd(int index, ConfigurationElement element) 432protected override void BaseAdd(ConfigurationElement element) 444protected override object GetElementKey(ConfigurationElement element) 454private void UpdatePropertyNameMap(ConfigurationElement element) 586protected override object GetElementKey(ConfigurationElement element) 595protected override ConfigurationElement CreateNewElement() 603protected override void BaseAdd(int index, ConfigurationElement element) 613protected override void BaseAdd(ConfigurationElement element) 625private void UpdateToolsVersionMap(ConfigurationElement element)
Microsoft.Build.Utilities.Core (15)
ToolsetElement.cs (15)
232protected override object GetElementKey(ConfigurationElement element) 241protected override ConfigurationElement CreateNewElement() 249protected override void BaseAdd(int index, ConfigurationElement element) 259protected override void BaseAdd(ConfigurationElement element) 271private void UpdateOSMap(ConfigurationElement element) 414protected override ConfigurationElement CreateNewElement() 422protected override void BaseAdd(int index, ConfigurationElement element) 432protected override void BaseAdd(ConfigurationElement element) 444protected override object GetElementKey(ConfigurationElement element) 454private void UpdatePropertyNameMap(ConfigurationElement element) 586protected override object GetElementKey(ConfigurationElement element) 595protected override ConfigurationElement CreateNewElement() 603protected override void BaseAdd(int index, ConfigurationElement element) 613protected override void BaseAdd(ConfigurationElement element) 625private void UpdateToolsVersionMap(ConfigurationElement element)
System.Configuration (1)
System.Configuration.cs (1)
14[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Configuration.ConfigurationElement))]
System.Configuration.ConfigurationManager (164)
System\Configuration\AppSettingsSection.cs (1)
77protected internal override void Reset(ConfigurationElement parentSection)
System\Configuration\ConfigurationElement.cs (57)
128ConfigurationElement childElement = CreateElement(prop.Type); 229internal static ConfigurationElement CreateElement(Type type) 231ConfigurationElement element = (ConfigurationElement)TypeUtil.CreateInstance(type); 254internal void MergeLocks(ConfigurationElement source) 348((ConfigurationElement)this[prop]).SetLocked(); 353internal void HandleLockedAttributes(ConfigurationElement source) 422foreach (ConfigurationElement elem in Values.ConfigurationElements) 435foreach (ConfigurationElement elem in Values.ConfigurationElements) 447foreach (ConfigurationElement elem in Values.ConfigurationElements) elem.SetReadOnly(); 456ConfigurationElement elem = this[prop] as ConfigurationElement; 466ConfigurationElement element = obj as ConfigurationElement; 498foreach (ConfigurationElement elem in Values.ConfigurationElements) 502if (collection != null) foreach (ConfigurationElement item in collection) item.ListErrors(errorList); 537internal void ResetLockLists(ConfigurationElement parentElement) 604protected internal virtual void Reset(ConfigurationElement parentElement) 664ConfigurationElement childElement = (ConfigurationElement)this[prop]; 665childElement.Reset((ConfigurationElement)value); 674ConfigurationElement otherElement = compareTo as ConfigurationElement; 735if (typeof(ConfigurationElement).IsAssignableFrom(type)) 775if ((result != null) && typeof(ConfigurationElement).IsAssignableFrom(result.Type)) 786Debug.Assert(typeof(ConfigurationElement).IsAssignableFrom(type)); 808private static void ApplyValidatorsRecursive(ConfigurationElement root) 816foreach (ConfigurationElement elem in root.Values.ConfigurationElements) ApplyValidatorsRecursive(elem); 819private static void ApplyValidator(ConfigurationElement elem) 874protected internal virtual void Unmerge(ConfigurationElement sourceElement, 875ConfigurationElement parentElement, 997ConfigurationElement pElem = 998(ConfigurationElement)parentElement?[prop]; 999ConfigurationElement childElement = (ConfigurationElement)this[prop]; 1000if ((ConfigurationElement)sourceElement[prop] != null) 1002childElement.Unmerge((ConfigurationElement)sourceElement[prop], 1138if ((serializeCollectionKey && !prop.IsKey) || !(value is ConfigurationElement)) 1147ConfigurationElement elem = (ConfigurationElement)value; 1228if (typeof(ConfigurationElement).IsAssignableFrom(validProp.Type)) 1239if (!typeof(ConfigurationElement).IsAssignableFrom(validProp.Type)) 1321typeof(ConfigurationElement).IsAssignableFrom(propToLock.Type)) || 1325!typeof(ConfigurationElement).IsAssignableFrom(propToLock.Type)) 1394ConfigurationElement defaultCollection = null; 1397defaultCollection = (ConfigurationElement)this[defaultCollectionProperty]; 1523ConfigurationElement childElement = (ConfigurationElement)this[prop]; 1642if ((propToLock != null) && typeof(ConfigurationElement).IsAssignableFrom(propToLock.Type)) 1643((ConfigurationElement)this[key]).SetLocked(); 1649((ConfigurationElement)this[prop]).SetLocked(); 1684((ConfigurationElement)this[prop]).SetLocked(); 1690defaultCollection = (ConfigurationElement)this[defaultCollectionProperty]; 1747internal static void ValidateElement(ConfigurationElement elem, ConfigurationValidatorBase propValidator, 1794while (it.MoveNext()) ValidateElement((ConfigurationElement)it.Current, null, true); 1800ConfigurationElement value = elem.Values[index] as ConfigurationElement;
System\Configuration\ConfigurationElementCollection.cs (39)
157ConfigurationElement elem = entry.Value; 173ConfigurationElement elem = entry.Value; 190ConfigurationElement elem = entry.Value; 242ConfigurationElement elem = thisEntry.Value; 249protected internal override void Unmerge(ConfigurationElement sourceElement, 250ConfigurationElement parentElement, 315ConfigurationElement elem = entry.Value; 362ConfigurationElement elem = CallCreateNewElement(entry.GetKey(this).ToString()); 379ConfigurationElement elem = CallCreateNewElement(entry.GetKey(this).ToString()); 432ConfigurationElement elem = CallCreateNewElement(entry.GetKey(this).ToString()); 444ConfigurationElement sourceItem = entry.Value; 456protected internal override void Reset(ConfigurationElement parentElement) 465ConfigurationElement elem = CallCreateNewElement(entry.GetKey(this).ToString()); 487public void CopyTo(ConfigurationElement[] array, int index) 492protected virtual void BaseAdd(ConfigurationElement element) 497protected internal void BaseAdd(ConfigurationElement element, bool throwIfExists) 502private void BaseAdd(ConfigurationElement element, bool throwIfExists, bool ignoreLocks) 585protected int BaseIndexOf(ConfigurationElement element) 598internal int RealIndexOf(ConfigurationElement element) 610private void BaseAddInternal(int index, ConfigurationElement element, bool flagAsReplaced, bool ignoreLocks) 675protected virtual void BaseAdd(int index, ConfigurationElement element) 680private void BaseAdd(int index, ConfigurationElement element, bool ignoreLocks) 833protected internal ConfigurationElement BaseGet(object key) 849protected internal ConfigurationElement BaseGet(int index) 1101ConfigurationElement elem = CallCreateNewElement(); 1110ConfigurationElement elem = CallCreateNewElement(); 1142ConfigurationElement elem = CallCreateNewElement(); 1156ConfigurationElement elem = CallCreateNewElement(elementName); 1165private ConfigurationElement CallCreateNewElement(string elementName) 1167ConfigurationElement elem = CreateNewElement(elementName); 1173private ConfigurationElement CallCreateNewElement() 1175ConfigurationElement elem = CreateNewElement(); 1181protected virtual ConfigurationElement CreateNewElement(string elementName) 1186protected abstract ConfigurationElement CreateNewElement(); 1187protected abstract object GetElementKey(ConfigurationElement element); 1189internal object GetElementKeyInternal(ConfigurationElement element) 1197protected virtual bool IsElementRemovable(ConfigurationElement element) 1247internal ConfigurationElement Value; 1249internal Entry(EntryType type, object key, ConfigurationElement value)
System\Configuration\ConfigurationLockCollection.cs (7)
14private readonly ConfigurationElement _thisElement; 19internal ConfigurationLockCollection(ConfigurationElement thisElement) 23internal ConfigurationLockCollection(ConfigurationElement thisElement, ConfigurationLockCollectionType lockType) 27internal ConfigurationLockCollection(ConfigurationElement thisElement, ConfigurationLockCollectionType lockType, 32internal ConfigurationLockCollection(ConfigurationElement thisElement, ConfigurationLockCollectionType lockType, 172if (!typeof(ConfigurationElement).IsAssignableFrom(propToLock?.Type)) 178if (typeof(ConfigurationElement).IsAssignableFrom(propToLock?.Type))
System\Configuration\ConfigurationProperty.cs (5)
176_isConfigurationElementType = typeof(ConfigurationElement).IsAssignableFrom(Type); 275if (ConfigurationElement.IsNullOrNullProperty(value)) 297if (ConfigurationElement.IsNullOrNullProperty(defaultValue)) 315if (ConfigurationElement.IsNullOrNullProperty(defaultValue)) 390else if (Type.IsSubclassOf(typeof(ConfigurationElement)))
System\Configuration\ConfigurationPropertyAttribute.cs (1)
18public object DefaultValue { get; set; } = ConfigurationElement.s_nullPropertyValue;
System\Configuration\ConfigurationSection.cs (4)
45protected internal virtual string SerializeSection(ConfigurationElement parentElement, string name, 55ConfigurationElement tempElement = CreateElement(GetType()); 81string propertyName, FrameworkName targetFramework, ConfigurationElement parentConfigurationElement) 86protected internal virtual bool ShouldSerializeElementInTargetVersion(ConfigurationElement element,
System\Configuration\ConfigurationValues.cs (4)
53foreach (ConfigurationElement currentElement in ConfigurationElements) 94if (value is ConfigurationElement) 97((ConfigurationElement)value).AssociateContext(_configRecord); 186if (value is ConfigurationElement) yield return value;
System\Configuration\ConnectionStringSettingsCollection.cs (3)
38protected override void BaseAdd(int index, ConfigurationElement element) 64protected override ConfigurationElement CreateNewElement() 69protected override object GetElementKey(ConfigurationElement element)
System\Configuration\DateTimeConfigurationCollection.cs (2)
40protected override ConfigurationElement CreateNewElement() 45protected override object GetElementKey(ConfigurationElement element)
System\Configuration\DefaultSection.cs (2)
43protected internal override void Reset(ConfigurationElement parentSection) 57protected internal override string SerializeSection(ConfigurationElement parentSection, string name,
System\Configuration\ElementInformation.cs (2)
10private readonly ConfigurationElement _thisElement; 14internal ElementInformation(ConfigurationElement thisElement)
System\Configuration\IgnoreSection.cs (2)
43protected internal override void Reset(ConfigurationElement parentSection) 57protected internal override string SerializeSection(ConfigurationElement parentSection, string name,
System\Configuration\KeyValueConfigurationCollection.cs (2)
62protected override ConfigurationElement CreateNewElement() 67protected override object GetElementKey(ConfigurationElement element)
System\Configuration\NameValueConfigurationCollection.cs (2)
52protected override ConfigurationElement CreateNewElement() 57protected override object GetElementKey(ConfigurationElement element)
System\Configuration\PropertyInformation.cs (2)
13private readonly ConfigurationElement _thisElement; 15internal PropertyInformation(ConfigurationElement thisElement, string propertyName)
System\Configuration\PropertyInformationCollection.cs (2)
12internal PropertyInformationCollection(ConfigurationElement thisElement) : base(StringComparer.Ordinal) 14ConfigurationElement thisElement1 = thisElement;
System\Configuration\ProviderSettings.cs (3)
82protected internal override void Unmerge(ConfigurationElement sourceElement, 83ConfigurationElement parentElement, 96protected internal override void Reset(ConfigurationElement parentElement)
System\Configuration\ProviderSettingsCollection.cs (2)
50protected override ConfigurationElement CreateNewElement() 55protected override object GetElementKey(ConfigurationElement element)
System\Configuration\RuntimeConfigurationRecord.cs (1)
127if (ConfigurationElement.IsLockAttributeName(attribute.Name))
System\Configuration\SchemeSettingElementCollection.cs (2)
44protected override ConfigurationElement CreateNewElement() 49protected override object GetElementKey(ConfigurationElement element)
System\Configuration\SettingElementCollection.cs (2)
24protected override ConfigurationElement CreateNewElement() 29protected override object GetElementKey(ConfigurationElement element)
System\Configuration\SettingValueElement.cs (3)
72protected internal override void Reset(ConfigurationElement parentElement) 78protected internal override void Unmerge(ConfigurationElement sourceElement, ConfigurationElement parentElement,
System\Diagnostics\ListenerElementsCollection.cs (6)
21protected override ConfigurationElement CreateNewElement() => new ListenerElement(true); 23protected override object GetElementKey(ConfigurationElement element) => ((ListenerElement)element).Name; 53protected override void BaseAdd(ConfigurationElement element) 75protected override ConfigurationElement CreateNewElement() => new ListenerElement(false); 273protected internal override void Unmerge(ConfigurationElement sourceElement, 274ConfigurationElement parentElement,
System\Diagnostics\SourceElementsCollection.cs (4)
22protected override ConfigurationElement CreateNewElement() 29protected override object GetElementKey(ConfigurationElement element) => ((SourceElement)element).Name; 124protected internal override void Unmerge(ConfigurationElement sourceElement, 125ConfigurationElement parentElement,
System\Diagnostics\SwitchElementsCollection.cs (4)
16protected override ConfigurationElement CreateNewElement() => new SwitchElement(); 17protected override object GetElementKey(ConfigurationElement element) => ((SwitchElement)element).Name; 88protected internal override void Unmerge(ConfigurationElement sourceElement, 89ConfigurationElement parentElement,
System.Runtime.Caching (3)
System\Runtime\Caching\Configuration\MemoryCacheSettingsCollection.cs (3)
85protected override ConfigurationElement CreateNewElement() 90protected override ConfigurationElement CreateNewElement(string elementName) 95protected override object GetElementKey(ConfigurationElement element)