1 write to SectionInformation
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationSection.cs (1)
15
SectionInformation
= new SectionInformation(this);
125 references to SectionInformation
Microsoft.Build (3)
ToolsetElement.cs (3)
76
if (String.IsNullOrEmpty(msbuildSection.
SectionInformation
.Type) ||
77
msbuildSection.
SectionInformation
.Type.IndexOf("Microsoft.Build", StringComparison.OrdinalIgnoreCase) >= 0)
80
msbuildSection.
SectionInformation
.Type = typeof(ToolsetConfigurationSection).AssemblyQualifiedName;
Microsoft.Build.Utilities.Core (3)
ToolsetElement.cs (3)
76
if (String.IsNullOrEmpty(msbuildSection.
SectionInformation
.Type) ||
77
msbuildSection.
SectionInformation
.Type.IndexOf("Microsoft.Build", StringComparison.OrdinalIgnoreCase) >= 0)
80
msbuildSection.
SectionInformation
.Type = typeof(ToolsetConfigurationSection).AssemblyQualifiedName;
System.Configuration.ConfigurationManager (119)
System\Configuration\ClientSettingsStore.cs (3)
78
section.
SectionInformation
.AllowExeDefinition = ConfigurationAllowExeDefinition.MachineToLocalUser;
79
section.
SectionInformation
.RequirePermission = false;
167
section.
SectionInformation
.RevertToParent();
System\Configuration\Configuration.cs (1)
225
_ = group.Sections[configSection.
SectionInformation
.Name];
System\Configuration\ConfigurationSection.cs (2)
27
return
SectionInformation
.IsModifiedFlags() ||
33
SectionInformation
.ResetModifiedFlags();
System\Configuration\MgmtConfigurationRecord.cs (110)
151
configSection.
SectionInformation
.AttachToConfigurationRecord(this, factoryRecord, sectionRecord);
336
string configKey = section.
SectionInformation
.SectionName;
393
string configKey = configSection.
SectionInformation
.ConfigKey;
403
configSection.
SectionInformation
.RawXml = null;
418
configSection.
SectionInformation
.SectionName),
423
configSection.
SectionInformation
.Removed = true;
455
ValidateSectionXml(xmlElement, configSection.
SectionInformation
.Name);
462
configSection.
SectionInformation
.RawXml = xmlElement;
481
configSection.
SectionInformation
.RawXml = null;
489
configSection.
SectionInformation
.SectionName),
494
configSection.
SectionInformation
.Removed = false;
665
if (configSection.
SectionInformation
.Attached)
676
if (!string.IsNullOrEmpty(configSection.
SectionInformation
.ConfigSource))
678
ChangeConfigSource(configSection.
SectionInformation
, null, null,
679
configSection.
SectionInformation
.ConfigSource);
686
string typeName = configSection.
SectionInformation
.Type ?? Host.GetConfigTypeName(configSection.GetType());
693
configSection.
SectionInformation
.AllowLocation,
694
configSection.
SectionInformation
.AllowDefinition,
695
configSection.
SectionInformation
.AllowExeDefinition,
696
configSection.
SectionInformation
.OverrideModeDefaultSetting,
697
configSection.
SectionInformation
.RestartOnExternalChanges,
698
configSection.
SectionInformation
.RequirePermission,
721
configSection.
SectionInformation
.AttachToConfigurationRecord(this, factoryRecord, sectionRecord);
725
string rawXml = configSection.
SectionInformation
.RawXml;
728
configSection.
SectionInformation
.RawXml = null;
729
configSection.
SectionInformation
.SetRawXml(rawXml);
757
configSection?.
SectionInformation
.DetachFromConfigurationRecord();
1132
return (factoryRecord.FactoryTypeName != configSection.
SectionInformation
.Type)
1133
|| (factoryRecord.AllowLocation != configSection.
SectionInformation
.AllowLocation)
1134
|| (factoryRecord.RestartOnExternalChanges != configSection.
SectionInformation
.RestartOnExternalChanges)
1135
|| (factoryRecord.RequirePermission != configSection.
SectionInformation
.RequirePermission)
1136
|| (factoryRecord.AllowDefinition != configSection.
SectionInformation
.AllowDefinition)
1137
|| (factoryRecord.AllowExeDefinition != configSection.
SectionInformation
.AllowExeDefinition)
1140
configSection.
SectionInformation
.OverrideModeDefaultSetting.OverrideMode) // Compare the value only
1141
|| configSection.
SectionInformation
.IsModifiedFlags();
1159
string type = configSection.
SectionInformation
.Type ?? factoryRecord.FactoryTypeName;
1163
AppendAttribute(sb, SectionNameAttribute, configSection.
SectionInformation
.Name);
1166
if (!configSection.
SectionInformation
.AllowLocation ||
1169
configSection.
SectionInformation
.AllowLocationModified))
1173
configSection.
SectionInformation
.AllowLocation
1178
if ((configSection.
SectionInformation
.AllowDefinition != ConfigurationAllowDefinition.Everywhere) ||
1181
configSection.
SectionInformation
.AllowDefinitionModified))
1184
switch (configSection.
SectionInformation
.AllowDefinition)
1203
if ((configSection.
SectionInformation
.AllowExeDefinition !=
1207
configSection.
SectionInformation
.AllowExeDefinitionModified))
1212
configSection.
SectionInformation
.AllowExeDefinition)
1216
if ((configSection.
SectionInformation
.OverrideModeDefaultSetting.IsDefaultForSection == false) ||
1219
configSection.
SectionInformation
.OverrideModeDefaultModified))
1223
configSection.
SectionInformation
.OverrideModeDefaultSetting.OverrideModeXmlValue);
1226
if (!configSection.
SectionInformation
.RestartOnExternalChanges)
1232
configSection.
SectionInformation
.RestartOnExternalChangesModified))
1236
if (!configSection.
SectionInformation
.RequirePermission)
1244
configSection.
SectionInformation
.RequirePermissionModified))
1323
if (!configSection.
SectionInformation
.IsDeclared
1425
if (configSection.
SectionInformation
.IsDeclared)
1485
configSection.
SectionInformation
.OverrideModeSetting)
1486
|| (inheritInChildApplications != configSection.
SectionInformation
.InheritInChildApplications);
1507
!StringUtil.EqualsOrBothNullOrEmpty(configSource, configSection.
SectionInformation
.ConfigSource)
1510
configSection.
SectionInformation
.ProtectionProviderName)
1569
overrideMode = configSection.
SectionInformation
.OverrideModeSetting;
1570
inheritInChildApplications = configSection.
SectionInformation
.InheritInChildApplications;
1573
if (!configSection.
SectionInformation
.AllowLocation &&
1581
!string.IsNullOrEmpty(configSection.
SectionInformation
.ConfigSource);
1584
bool isModified = configSection.
SectionInformation
.ForceSave ||
1586
(forceSaveAll && !configSection.
SectionInformation
.IsLocked);
1590
(configSection.
SectionInformation
.RawXml != null);
1595
configSection.
SectionInformation
.VerifyIsEditable();
1596
configSection.
SectionInformation
.Removed = false;
1603
!string.IsNullOrEmpty(configSection.
SectionInformation
.ConfigSource)
1605
(sectionContentModified || configSection.
SectionInformation
.ConfigSourceModified);
1609
(configSection.
SectionInformation
.RawXml == null) ||
1616
configSection.
SectionInformation
.Name, saveMode);
1619
else updatedXml = configSection.
SectionInformation
.RawXml;
1627
if (!string.IsNullOrEmpty(configSection.
SectionInformation
.ConfigSource) ||
1628
!configSection.
SectionInformation
.LocationAttributesAreDefault ||
1629
(configSection.
SectionInformation
.ProtectionProvider != null))
1630
updatedXml = WriteEmptyElement(configSection.
SectionInformation
.Name);
1635
configSection.
SectionInformation
.Removed = true;
1653
string.IsNullOrEmpty(configSection.
SectionInformation
.ConfigSource))
1657
if (configSection.
SectionInformation
.ProtectionProvider != null)
1665
configSection.
SectionInformation
.ProtectionProvider, protectedConfig);
1671
configSection.
SectionInformation
.Name,
1672
configSection.
SectionInformation
.ProtectionProvider.Name);
1678
configSection.
SectionInformation
.SectionName,
1679
configSection.
SectionInformation
.ProtectionProvider.Name, e.Message),
1687
if (configSection.
SectionInformation
.Removed)
1698
configSection.
SectionInformation
.SectionName), e);
1758
if (configSection.
SectionInformation
.Type != null)
1759
factoryRecord.FactoryTypeName = configSection.
SectionInformation
.Type;
1761
factoryRecord.AllowLocation = configSection.
SectionInformation
.AllowLocation;
1763
configSection.
SectionInformation
.RestartOnExternalChanges;
1764
factoryRecord.RequirePermission = configSection.
SectionInformation
.RequirePermission;
1765
factoryRecord.AllowDefinition = configSection.
SectionInformation
.AllowDefinition;
1766
factoryRecord.AllowExeDefinition = configSection.
SectionInformation
.AllowExeDefinition;
1783
configSource = configSection.
SectionInformation
.ConfigSource;
1786
configSourceStreamName = configSection.
SectionInformation
.ConfigSourceStreamName;
1834
configSection.
SectionInformation
.RawXml = null;
1847
configSection.
SectionInformation
.ProtectionProviderName,
1848
configSection.
SectionInformation
.OverrideModeSetting,
1849
!configSection.
SectionInformation
.InheritInChildApplications);
1868
configSection.
SectionInformation
.ProtectionProviderName;
1870
configSection.
SectionInformation
.OverrideModeSetting;
1872
!configSection.
SectionInformation
.InheritInChildApplications;
1875
fileInput.ProtectionProvider = configSection.
SectionInformation
.ProtectionProvider;
2906
if (string.IsNullOrEmpty(configSection.
SectionInformation
.ConfigSource) ||
2907
configSection.
SectionInformation
.ConfigSourceModified)
2960
if (!string.IsNullOrEmpty(configSection.
SectionInformation
.ConfigSource))
2963
configSection.
SectionInformation
.Name, configSection.
SectionInformation
.ConfigSource);
2979
configSourceStreamName = configSection.
SectionInformation
.ConfigSourceStreamName;
System\Configuration\RuntimeConfigurationRecord.cs (2)
75
section.
SectionInformation
.SectionName), e);
148
configSection.
SectionInformation
.SetRuntimeConfigurationInformation(configRecord, factoryRecord,
System\Configuration\SectionInformation.cs (1)
651
ancestor.
SectionInformation
._flags[FlagIsParentSection] = true;