System.Configuration.SettingElementCollection.Get C# (CSharp) Метод

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

public Get ( string elementKey ) : SettingElement
elementKey string
Результат SettingElement
        public SettingElement Get(string elementKey) {
            return (SettingElement) BaseGet(elementKey);
        }

Usage Example

Пример #1
0
		public void CollectionAddNameless ()
		{
			SettingElement el = new SettingElement ();
			Assert.AreEqual (String.Empty, el.Name, "premise #1");
			SettingElementCollection c = new SettingElementCollection ();
			Assert.AreEqual (ConfigurationElementCollectionType.BasicMap, c.CollectionType, "premise #2");
			c.Add (el);
			Assert.AreEqual (el, c.Get (""), "#1");
		}
All Usage Examples Of System.Configuration.SettingElementCollection::Get