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