protected bool IsSectionLocked(string configKey) {
SectionRecord sectionRecord = GetSectionRecord(configKey, true);
// If the section record exists, the locked bit will be set if it is locked.
if (sectionRecord != null) {
if (sectionRecord.Locked) {
return true;
}
// Because we are so close to RTM, we cannot change the code to avoid
// the call below to IsParentCausingLock(). However, we can still verify
// that the parent isn't causing a lock.
Debug.Assert(!IsParentCausingLock(configKey), "!IsParentCausingLock(configKey)");
}
// Check if parent causes a lock.
return IsParentCausingLock(configKey);
}