NuGet.Settings.SetValues C# (CSharp) Method

SetValues() public method

public SetValues ( string section, string>.IList values ) : void
section string
values string>.IList
return void
        public void SetValues(string section, IList<KeyValuePair<string, string>> values)
        {
            if (String.IsNullOrEmpty(section))
            {
                throw new ArgumentException(CommonResources.Argument_Cannot_Be_Null_Or_Empty, "section");
            }
            if (values == null)
            {
                throw new ArgumentNullException("values");
            }

            var sectionElement = GetOrCreateSection(_config.Root, section);
            foreach (var kvp in values)
            {
                SetValueInternal(sectionElement, kvp.Key, kvp.Value);
            }
            Save();
        }