Amazon.Runtime.Internal.Util.IniFile.DeleteSection C# (CSharp) Метод

DeleteSection() публичный Метод

If the section exists, delete it from the INI file.
public DeleteSection ( string sectionName ) : void
sectionName string section to delete
Результат void
        public void DeleteSection(string sectionName)
        {
            var lineNumber = 0;
            if (TrySeekSection(sectionName, ref lineNumber))
            {
                Lines.RemoveAt(lineNumber);
                while (lineNumber < Lines.Count &&
                    !IsSection(Lines[lineNumber]))
                {
                    Lines.RemoveAt(lineNumber);
                }
            }
        }