mscorlib(4.0.0.0) API with additions
SchemeSettingElementCollection.cs
1 namespace System.Configuration
2 {
4  [ConfigurationCollection(typeof(SchemeSettingElement), CollectionType = ConfigurationElementCollectionType.AddRemoveClearMap, AddItemName = "add", ClearItemsName = "clear", RemoveItemName = "remove")]
5  public sealed class SchemeSettingElementCollection : ConfigurationElementCollection
6  {
7  internal const string AddItemName = "add";
8 
9  internal const string ClearItemsName = "clear";
10 
11  internal const string RemoveItemName = "remove";
12 
15  public override ConfigurationElementCollectionType CollectionType => ConfigurationElementCollectionType.AddRemoveClearMap;
16 
21  public SchemeSettingElement this[int index]
22  {
23  get
24  {
25  return (SchemeSettingElement)BaseGet(index);
26  }
27  }
28 
32  public new SchemeSettingElement this[string name]
33  {
34  get
35  {
36  return (SchemeSettingElement)BaseGet(name);
37  }
38  }
39 
42  {
43  base.AddElementName = "add";
44  base.ClearElementName = "clear";
45  base.RemoveElementName = "remove";
46  }
47 
51  public int IndexOf(SchemeSettingElement element)
52  {
53  return BaseIndexOf(element);
54  }
55 
56  protected override ConfigurationElement CreateNewElement()
57  {
58  return new SchemeSettingElement();
59  }
60 
61  protected override object GetElementKey(ConfigurationElement element)
62  {
63  return ((SchemeSettingElement)element).Name;
64  }
65  }
66 }
int IndexOf(SchemeSettingElement element)
The index of the specified T:System.Configuration.SchemeSettingElement.
override ConfigurationElementCollectionType CollectionType
Gets the default collection type of T:System.Configuration.SchemeSettingElementCollection.
Represents a collection of T:System.Configuration.SchemeSettingElement objects.
Represents an element in a T:System.Configuration.SchemeSettingElementCollection class.
SchemeSettingElementCollection()
Initializes a new instance of the T:System.Configuration.SchemeSettingElementCollection class.