System.Configuration.KeyValueConfigurationCollection.Add C# (CSharp) Метод

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

public Add ( String key, String value ) : void
key String
value String
Результат void
        public void Add(String key, String value) {
            KeyValueConfigurationElement element = new KeyValueConfigurationElement(key, value);
            Add(element);
        }

Same methods

KeyValueConfigurationCollection::Add ( KeyValueConfigurationElement keyValue ) : void

Usage Example

Пример #1
0
        private static KeyValueConfigurationCollection GetKeyValueCollection()
        {
            var collection = new KeyValueConfigurationCollection();
            collection.Add("Name", "Value");
            collection.Add("Email", "*****@*****.**");
            collection.Add("Company", "IBM");
            collection.Add("Year", "2011");

            return collection;
        }
All Usage Examples Of System.Configuration.KeyValueConfigurationCollection::Add