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