130 references to SectionInformation
System.Configuration (122)
System\Configuration\BaseConfigurationRecord.cs (1)
4199
configBuilder.Name, configSection.
SectionInformation
.Name), e, null);
System\Configuration\Configuration.cs (1)
244
ConfigurationSection section = group.Sections[configSection.
SectionInformation
.Name];
System\Configuration\ConfigurationSection.cs (2)
49
return (
SectionInformation
.IsModifiedFlags() ||
54
SectionInformation
.ResetModifiedFlags();
System\Configuration\MgmtConfigurationRecord.cs (115)
151
configSection.
SectionInformation
.AttachToConfigurationRecord(this, factoryRecord, sectionRecord);
428
string configKey = section.
SectionInformation
.SectionName;
476
string configKey = configSection.
SectionInformation
.ConfigKey;
489
configSection.
SectionInformation
.RawXml = null;
500
throw new ConfigurationErrorsException(SR.GetString(SR.Config_exception_in_config_section_handler, configSection.
SectionInformation
.SectionName),
505
configSection.
SectionInformation
.Removed = true;
542
ValidateSectionXml(xmlElement, configSection.
SectionInformation
.Name);
549
configSection.
SectionInformation
.RawXml = xmlElement;
565
configSection.
SectionInformation
.RawXml = null;
570
throw new ConfigurationErrorsException(SR.GetString(SR.Config_exception_in_config_section_handler, configSection.
SectionInformation
.SectionName),
575
configSection.
SectionInformation
.Removed = false;
768
if (configSection.
SectionInformation
.Attached) {
781
if (!String.IsNullOrEmpty(configSection.
SectionInformation
.ConfigSource)) {
782
ChangeConfigSource(configSection.
SectionInformation
, null, null, configSection.
SectionInformation
.ConfigSource);
791
string typeName = configSection.
SectionInformation
.Type;
801
configSection.
SectionInformation
.AllowLocation,
802
configSection.
SectionInformation
.AllowDefinition,
803
configSection.
SectionInformation
.AllowExeDefinition,
804
configSection.
SectionInformation
.OverrideModeDefaultSetting,
805
configSection.
SectionInformation
.RestartOnExternalChanges,
806
configSection.
SectionInformation
.RequirePermission,
832
configSection.
SectionInformation
.AttachToConfigurationRecord(this, factoryRecord, sectionRecord);
838
string rawXml = configSection.
SectionInformation
.RawXml;
840
configSection.
SectionInformation
.RawXml = null;
841
configSection.
SectionInformation
.SetRawXml(rawXml);
875
configSection.
SectionInformation
.DetachFromConfigurationRecord();
1306
return factoryRecord.FactoryTypeName != configSection.
SectionInformation
.Type
1307
|| factoryRecord.AllowLocation != configSection.
SectionInformation
.AllowLocation
1308
|| factoryRecord.RestartOnExternalChanges != configSection.
SectionInformation
.RestartOnExternalChanges
1309
|| factoryRecord.RequirePermission != configSection.
SectionInformation
.RequirePermission
1310
|| factoryRecord.AllowDefinition != configSection.
SectionInformation
.AllowDefinition
1311
|| factoryRecord.AllowExeDefinition != configSection.
SectionInformation
.AllowExeDefinition
1312
|| factoryRecord.OverrideModeDefault.OverrideMode != configSection.
SectionInformation
.OverrideModeDefaultSetting.OverrideMode // Compare the value only
1313
|| configSection.
SectionInformation
.IsModifiedFlags();
1328
string type = (configSection.
SectionInformation
.Type != null) ? configSection.
SectionInformation
.Type : factoryRecord.FactoryTypeName;
1332
AppendAttribute(sb, KEYWORD_SECTION_NAME, configSection.
SectionInformation
.Name);
1335
if ( !configSection.
SectionInformation
.AllowLocation ||
1338
configSection.
SectionInformation
.AllowLocationModified)) {
1341
configSection.
SectionInformation
.AllowLocation ?
1346
if ((configSection.
SectionInformation
.AllowDefinition != ConfigurationAllowDefinition.Everywhere) ||
1348
(saveMode == ConfigurationSaveMode.Modified && configSection.
SectionInformation
.AllowDefinitionModified)) {
1351
switch (configSection.
SectionInformation
.AllowDefinition) {
1371
if ((configSection.
SectionInformation
.AllowExeDefinition !=
1374
(saveMode == ConfigurationSaveMode.Modified && configSection.
SectionInformation
.AllowExeDefinitionModified)) {
1379
configSection.
SectionInformation
.AllowExeDefinition )
1383
if ( (configSection.
SectionInformation
.OverrideModeDefaultSetting.IsDefaultForSection == false) ||
1385
(saveMode == ConfigurationSaveMode.Modified && configSection.
SectionInformation
.OverrideModeDefaultModified)) {
1389
configSection.
SectionInformation
.OverrideModeDefaultSetting.OverrideModeXmlValue);
1392
if (!configSection.
SectionInformation
.RestartOnExternalChanges) {
1396
(saveMode == ConfigurationSaveMode.Modified && configSection.
SectionInformation
.RestartOnExternalChangesModified)) {
1400
if (!configSection.
SectionInformation
.RequirePermission) {
1404
(saveMode == ConfigurationSaveMode.Modified && configSection.
SectionInformation
.RequirePermissionModified)) {
1506
if (!configSection.
SectionInformation
.IsDeclared
1593
if (configSection.
SectionInformation
.IsDeclared) {
1650
(!OverrideModeSetting.CanUseSameLocationTag(overrideMode, configSection.
SectionInformation
.OverrideModeSetting))
1651
|| (inheritInChildApplications != configSection.
SectionInformation
.InheritInChildApplications);
1672
!StringUtil.EqualsNE(configSource, configSection.
SectionInformation
.ConfigSource)
1673
|| !StringUtil.EqualsNE(protectionProviderName, configSection.
SectionInformation
.ProtectionProviderName)
1674
|| !StringUtil.EqualsNE(configBuilderName, configSection.
SectionInformation
.ConfigBuilderName)
1722
overrideMode = configSection.
SectionInformation
.OverrideModeSetting;
1723
inheritInChildApplications = configSection.
SectionInformation
.InheritInChildApplications;
1726
if (!configSection.
SectionInformation
.AllowLocation && (!overrideMode.IsDefaultForLocationTag || !inheritInChildApplications)) {
1730
addToConfigSourceUpdates = requireUpdates && !String.IsNullOrEmpty(configSection.
SectionInformation
.ConfigSource);
1732
bool isModified = configSection.
SectionInformation
.ForceSave ||
1734
(forceSaveAll && !configSection.
SectionInformation
.IsLocked);
1737
bool sectionContentModified = (isModified || configSection.
SectionInformation
.RawXml != null);
1741
configSection.
SectionInformation
.VerifyIsEditable();
1742
configSection.
SectionInformation
.Removed = false;
1748
!String.IsNullOrEmpty(configSection.
SectionInformation
.ConfigSource)
1749
&& (sectionContentModified || configSection.
SectionInformation
.ConfigSourceModified);
1753
configSection.
SectionInformation
.RawXml == null ||
1759
updatedXml = configSection.SerializeSection(parentConfigSection, configSection.
SectionInformation
.Name, saveMode);
1764
if (String.Equals(configSection.
SectionInformation
.Name, ConfigurationStringConstants.WinformsApplicationConfigurationSectionName, StringComparison.Ordinal)
1773
updatedXml = configSection.
SectionInformation
.RawXml;
1783
if ( !String.IsNullOrEmpty(configSection.
SectionInformation
.ConfigSource) ||
1784
!configSection.
SectionInformation
.LocationAttributesAreDefault ||
1785
(configSection.
SectionInformation
.ProtectionProvider != null)) {
1787
updatedXml = WriteEmptyElement(configSection.
SectionInformation
.Name);
1792
configSection.
SectionInformation
.Removed = true;
1807
if (sectionAttributesModified || moved || String.IsNullOrEmpty(configSection.
SectionInformation
.ConfigSource)) {
1812
if (configSection.
SectionInformation
.ProtectionProvider != null) {
1815
string encryptedSection = Host.EncryptSection(updatedXml, configSection.
SectionInformation
.ProtectionProvider, protectedConfig);
1819
updatedXml = ProtectedConfigurationSection.FormatEncryptedSection(encryptedSection, configSection.
SectionInformation
.Name, configSection.
SectionInformation
.ProtectionProvider.Name);
1823
SR.GetString(SR.Encryption_failed, configSection.
SectionInformation
.SectionName, configSection.
SectionInformation
.ProtectionProvider.Name, e.Message),
1829
else if (configSection.
SectionInformation
.Removed) {
1837
throw new ConfigurationErrorsException(SR.GetString(SR.Config_exception_in_config_section_handler, configSection.
SectionInformation
.SectionName), e);
1912
if (configSection.
SectionInformation
.Type != null) {
1913
factoryRecord.FactoryTypeName = configSection.
SectionInformation
.Type;
1916
factoryRecord.AllowLocation = configSection.
SectionInformation
.AllowLocation;
1917
factoryRecord.RestartOnExternalChanges = configSection.
SectionInformation
.RestartOnExternalChanges;
1918
factoryRecord.RequirePermission = configSection.
SectionInformation
.RequirePermission;
1919
factoryRecord.AllowDefinition = configSection.
SectionInformation
.AllowDefinition;
1920
factoryRecord.AllowExeDefinition = configSection.
SectionInformation
.AllowExeDefinition;
1935
configSource = configSection.
SectionInformation
.ConfigSource;
1940
configSourceStreamName = configSection.
SectionInformation
.ConfigSourceStreamName;
1984
configSection.
SectionInformation
.RawXml = null;
1995
configSection.
SectionInformation
.ConfigBuilderName,
1996
configSection.
SectionInformation
.ProtectionProviderName,
1997
configSection.
SectionInformation
.OverrideModeSetting,
1998
!configSection.
SectionInformation
.InheritInChildApplications);
2014
sectionXmlInfo.ConfigBuilderName = configSection.
SectionInformation
.ConfigBuilderName;
2015
sectionXmlInfo.ProtectionProviderName = configSection.
SectionInformation
.ProtectionProviderName;
2016
sectionXmlInfo.OverrideModeSetting = configSection.
SectionInformation
.OverrideModeSetting;
2017
sectionXmlInfo.SkipInChildApps = !configSection.
SectionInformation
.InheritInChildApplications;
2020
fileInput.ProtectionProvider = configSection.
SectionInformation
.ProtectionProvider;
2997
if ( String.IsNullOrEmpty(configSection.
SectionInformation
.ConfigSource) ||
2998
configSection.
SectionInformation
.ConfigSourceModified) {
3058
if (!String.IsNullOrEmpty(configSection.
SectionInformation
.ConfigSource)) {
3059
updatedXml = string.Format(CultureInfo.InvariantCulture, FORMAT_SECTION_CONFIGSOURCE, configSection.
SectionInformation
.Name, configSection.
SectionInformation
.ConfigSource);
3078
configSourceStreamName = configSection.
SectionInformation
.ConfigSourceStreamName;
System\Configuration\RuntimeConfigurationRecord.cs (2)
119
throw new ConfigurationErrorsException(SR.GetString(SR.Config_exception_in_config_section_handler, section.
SectionInformation
.SectionName), e);
225
configSection.
SectionInformation
.SetRuntimeConfigurationInformation(configRecord, factoryRecord, sectionRecord);
System\Configuration\SectionInformation.cs (1)
775
ancestor.
SectionInformation
._flags[Flag_IsParentSection] = true;
System.ServiceModel.Discovery (4)
System\ServiceModel\Discovery\Configuration\ConfigurationUtility.cs (4)
79
clientSection.
SectionInformation
.SectionName)));
88
clientSection.
SectionInformation
.SectionName)));
107
clientSection.
SectionInformation
.SectionName)));
116
clientSection.
SectionInformation
.SectionName)));
System.Web (4)
Management\regiisutil.cs (4)
233
section.
SectionInformation
.ProtectSection(providerName);
242
section.
SectionInformation
.UnprotectSection();
251
section.
SectionInformation
.ProtectSection(providerName);
260
section.
SectionInformation
.UnprotectSection();