ConfigurationSectionGroupCollection.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. //
  2. // System.Configuration.ConfigurationSectionGroupCollection.cs
  3. //
  4. // Authors:
  5. // Duncan Mak ([email protected])
  6. //
  7. // Permission is hereby granted, free of charge, to any person obtaining
  8. // a copy of this software and associated documentation files (the
  9. // "Software"), to deal in the Software without restriction, including
  10. // without limitation the rights to use, copy, modify, merge, publish,
  11. // distribute, sublicense, and/or sell copies of the Software, and to
  12. // permit persons to whom the Software is furnished to do so, subject to
  13. // the following conditions:
  14. //
  15. // The above copyright notice and this permission notice shall be
  16. // included in all copies or substantial portions of the Software.
  17. //
  18. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  19. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  20. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  21. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  22. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  23. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  24. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  25. //
  26. // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
  27. //
  28. #if NET_2_0
  29. using System;
  30. using System.Collections;
  31. using System.Collections.Specialized;
  32. namespace System.Configuration {
  33. public sealed class ConfigurationSectionGroupCollection : NameObjectCollectionBase
  34. {
  35. public ICollection AllKeys {
  36. get { return BaseGetAllKeys (); }
  37. }
  38. public override int Count {
  39. get { throw new NotImplementedException (); }
  40. }
  41. public ConfigurationSectionGroup this [int index] {
  42. get { throw new NotImplementedException (); }
  43. }
  44. public ConfigurationSectionGroup this [string index] {
  45. get { throw new NotImplementedException (); }
  46. }
  47. public override NameObjectCollectionBase.KeysCollection Keys {
  48. get { throw new NotImplementedException (); }
  49. }
  50. public void Add (string name, ConfigurationSectionGroup section_group)
  51. {
  52. BaseAdd (name, section_group);
  53. }
  54. public void Clear ()
  55. {
  56. BaseClear ();
  57. }
  58. public void CopyTo (ConfigurationSectionGroup [] array, int index)
  59. {
  60. throw new NotImplementedException ();
  61. }
  62. public ConfigurationSectionGroup Get (int index)
  63. {
  64. return BaseGet (index) as ConfigurationSectionGroup;
  65. }
  66. public ConfigurationSectionGroup Get (string index)
  67. {
  68. return BaseGet (index) as ConfigurationSectionGroup;
  69. }
  70. public override IEnumerator GetEnumerator ()
  71. {
  72. throw new NotImplementedException ();
  73. }
  74. public string GetKey (string index)
  75. {
  76. throw new NotImplementedException ();
  77. }
  78. public void Remove (string index)
  79. {
  80. BaseRemove (index);
  81. }
  82. public void RemoveAt (int index)
  83. {
  84. BaseRemoveAt (index);
  85. }
  86. }
  87. }
  88. #endif