ConfigurationElement.cs 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. //
  2. // System.Configuration.ConfigurationElement.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. #if XML_DEP
  30. using System.Collections;
  31. using System.Xml;
  32. namespace System.Configuration
  33. {
  34. public abstract class ConfigurationElement
  35. {
  36. protected ConfigurationElement ()
  37. {
  38. }
  39. protected internal virtual ConfigurationPropertyCollection CollectionKeyProperties {
  40. get {
  41. throw new NotImplementedException ();
  42. }
  43. }
  44. protected internal object this [ConfigurationProperty property] {
  45. get {
  46. throw new NotImplementedException ();
  47. }
  48. set {
  49. throw new NotImplementedException ();
  50. }
  51. }
  52. protected internal object this [string property_name] {
  53. get {
  54. throw new NotImplementedException ();
  55. }
  56. set {
  57. throw new NotImplementedException ();
  58. }
  59. }
  60. protected internal virtual ConfigurationPropertyCollection Properties {
  61. get {
  62. throw new NotImplementedException ();
  63. }
  64. }
  65. public override bool Equals (object compareTo)
  66. {
  67. throw new NotImplementedException ();
  68. }
  69. public override int GetHashCode ()
  70. {
  71. throw new NotImplementedException ();
  72. }
  73. public bool HasValue (string key)
  74. {
  75. throw new NotImplementedException ();
  76. }
  77. public string PropertyFileName ()
  78. {
  79. throw new NotImplementedException ();
  80. }
  81. public int PropertyLineNumber ()
  82. {
  83. throw new NotImplementedException ();
  84. }
  85. protected internal virtual void Deserialize (
  86. XmlReader reader, bool serialize_collection_key)
  87. {
  88. throw new NotImplementedException ();
  89. }
  90. protected virtual bool HandleUnrecognizedAttribute (
  91. string name, string value)
  92. {
  93. throw new NotImplementedException ();
  94. }
  95. protected virtual bool HandleUnrecognizedElement (
  96. string element, XmlReader reader)
  97. {
  98. throw new NotImplementedException ();
  99. }
  100. protected internal virtual void InitializeDefault ()
  101. {
  102. throw new NotImplementedException ();
  103. }
  104. protected internal virtual bool IsModified ()
  105. {
  106. throw new NotImplementedException ();
  107. }
  108. protected internal virtual void ReadXml (XmlReader reader, object context)
  109. {
  110. throw new NotImplementedException ();
  111. }
  112. protected internal virtual void Reset (
  113. ConfigurationElement parent_element, object context)
  114. {
  115. throw new NotImplementedException ();
  116. }
  117. protected internal virtual void ResetModified ()
  118. {
  119. throw new NotImplementedException ();
  120. }
  121. protected internal virtual bool Serialize (
  122. XmlWriter writer, bool serialize_collection_key)
  123. {
  124. throw new NotImplementedException ();
  125. }
  126. protected internal virtual bool SerializeAttributeOnRemove (
  127. ConfigurationProperty property)
  128. {
  129. throw new NotImplementedException ();
  130. }
  131. protected internal virtual bool SerializeToXmlElement (
  132. XmlWriter writer, string element_name)
  133. {
  134. throw new NotImplementedException ();
  135. }
  136. protected internal virtual void UnMerge (
  137. ConfigurationElement source, ConfigurationElement parent,
  138. bool serialize_collection_key, object context,
  139. ConfigurationUpdateMode update_mode)
  140. {
  141. throw new NotImplementedException ();
  142. }
  143. protected internal virtual void ValidateRequiresProperties (
  144. ConfigurationPropertyCollection properties,
  145. bool serialize_collection_key)
  146. {
  147. throw new NotImplementedException ();
  148. }
  149. protected internal virtual string WriteXml (
  150. ConfigurationElement parent,
  151. object context, string name,
  152. ConfigurationUpdateMode update_mode)
  153. {
  154. throw new NotImplementedException ();
  155. }
  156. }
  157. }
  158. #endif
  159. #endif