System.Configuration.SectionRecord.AddLocationInput C# (CSharp) Метод

AddLocationInput() приватный Метод

private AddLocationInput ( SectionInput sectionInput ) : void
sectionInput SectionInput
Результат void
        AddLocationInput(SectionInput sectionInput) {
            if (_locationInputs == null) {
                _locationInputs = new List<SectionInput>(1);
            }

            // The list of locationSections is traversed from child to parent,
            // so insert at the beginning of the list.
            _locationInputs.Insert(0, sectionInput);

            // If LockChildren is set, lock both ourselves and children
            if (!sectionInput.HasErrors && sectionInput.SectionXmlInfo.LockChildren) {
                Locked = true;
                LockChildren = true;
            }
        }