System.Configuration.MgmtConfigurationRecord.AreLocationAttributesModified C# (CSharp) Méthode

AreLocationAttributesModified() private méthode

private AreLocationAttributesModified ( SectionRecord sectionRecord, ConfigurationSection configSection ) : bool
sectionRecord SectionRecord
configSection ConfigurationSection
Résultat bool
        private bool AreLocationAttributesModified(SectionRecord sectionRecord, ConfigurationSection configSection) {
            bool allowOverride;
            bool inheritInChildApplications;

            if (sectionRecord.HasFileInput) {
                SectionXmlInfo sectionXmlInfo = sectionRecord.FileInput.SectionXmlInfo;
                allowOverride = !sectionXmlInfo.LockChildren;
                inheritInChildApplications = !sectionXmlInfo.SkipInChildApps;
            }
            else {
                allowOverride = true;
                inheritInChildApplications = true;
            }

            return  
                   (allowOverride != configSection.SectionInformation.AllowOverride)
                || (inheritInChildApplications != configSection.SectionInformation.InheritInChildApplications);
        }