PagesSection.cs 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. //
  2. // System.Web.Configuration.PagesSection
  3. //
  4. // Authors:
  5. // Chris Toshok ([email protected])
  6. //
  7. // (C) 2005 Novell, Inc (http://www.novell.com)
  8. //
  9. //
  10. // Permission is hereby granted, free of charge, to any person obtaining
  11. // a copy of this software and associated documentation files (the
  12. // "Software"), to deal in the Software without restriction, including
  13. // without limitation the rights to use, copy, modify, merge, publish,
  14. // distribute, sublicense, and/or sell copies of the Software, and to
  15. // permit persons to whom the Software is furnished to do so, subject to
  16. // the following conditions:
  17. //
  18. // The above copyright notice and this permission notice shall be
  19. // included in all copies or substantial portions of the Software.
  20. //
  21. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28. //
  29. #if NET_2_0
  30. using System;
  31. using System.ComponentModel;
  32. using System.Configuration;
  33. using System.Web.UI;
  34. using System.Xml;
  35. namespace System.Web.Configuration
  36. {
  37. public class PagesSection: InternalSection
  38. {
  39. static ConfigurationPropertyCollection properties;
  40. static ConfigurationProperty asyncTimeoutProp;
  41. static ConfigurationProperty autoEventWireupProp;
  42. static ConfigurationProperty bufferProp;
  43. static ConfigurationProperty modeProp;
  44. static PagesSection ()
  45. {
  46. properties = new ConfigurationPropertyCollection ();
  47. asyncTimeoutProp = new ConfigurationProperty ("asyncTimeout", typeof(TimeSpan), null);
  48. autoEventWireupProp = new ConfigurationProperty ("autoEventWireup", typeof(bool), true);
  49. bufferProp = new ConfigurationProperty ("buffer", typeof(bool), false);
  50. modeProp = new ConfigurationProperty ("compilationMode", typeof (CompilationMode), CompilationMode.Always);
  51. }
  52. public PagesSection ()
  53. {
  54. }
  55. [TimeSpanValidator (MinValueString = "00:00:00",
  56. MaxValueString = "10675199.02:48:05.4775807")]
  57. [TypeConverter (typeof (TimeSpanSecondsConverter))]
  58. [ConfigurationProperty ("asyncTimeout", DefaultValue = "00:00:45")]
  59. public TimeSpan AsyncTimeout {
  60. get { return (TimeSpan) base [asyncTimeoutProp]; }
  61. set { base [asyncTimeoutProp] = value; }
  62. }
  63. [ConfigurationProperty ("autoEventWireup", DefaultValue = true)]
  64. public bool AutoEventWireup {
  65. get { return (bool) base [autoEventWireupProp]; }
  66. set { base [autoEventWireupProp] = value; }
  67. }
  68. [ConfigurationProperty ("buffer", DefaultValue = true)]
  69. public bool Buffer {
  70. get { return (bool) base [bufferProp]; }
  71. set { base [bufferProp] = value; }
  72. }
  73. [ConfigurationProperty ("compilationMode", DefaultValue = CompilationMode.Always)]
  74. public CompilationMode CompilationMode {
  75. get { return (CompilationMode) base [modeProp]; }
  76. set { base [modeProp] = value; }
  77. }
  78. #if notyet
  79. [MonoTODO]
  80. public TagPrefixCollection Controls {
  81. get {
  82. throw new NotImplementedException ();
  83. }
  84. }
  85. #endif
  86. [MonoTODO]
  87. [ConfigurationProperty ("enableSessionState", DefaultValue = true)]
  88. public PagesEnableSessionState EnableSessionState {
  89. get {
  90. throw new NotImplementedException ();
  91. }
  92. set {
  93. throw new NotImplementedException ();
  94. }
  95. }
  96. [MonoTODO]
  97. [ConfigurationProperty ("enableViewState", DefaultValue = true)]
  98. public bool EnableViewState {
  99. get {
  100. throw new NotImplementedException ();
  101. }
  102. set {
  103. throw new NotImplementedException ();
  104. }
  105. }
  106. [MonoTODO]
  107. [ConfigurationProperty ("enableViewStateMac", DefaultValue = true)]
  108. public bool EnableViewStateMac {
  109. get {
  110. throw new NotImplementedException ();
  111. }
  112. set {
  113. throw new NotImplementedException ();
  114. }
  115. }
  116. [MonoTODO]
  117. [ConfigurationProperty ("maintainScrollPositionOnPostBack", DefaultValue = false)]
  118. public bool MaintainScrollPositionOnPostBack {
  119. get {
  120. throw new NotImplementedException ();
  121. }
  122. set {
  123. throw new NotImplementedException ();
  124. }
  125. }
  126. [MonoTODO]
  127. [ConfigurationProperty ("masterPageFile", DefaultValue = "")]
  128. public string MasterPageFile {
  129. get {
  130. throw new NotImplementedException ();
  131. }
  132. set {
  133. throw new NotImplementedException ();
  134. }
  135. }
  136. [MonoTODO]
  137. [ConfigurationProperty ("maxPageStateFieldLength", DefaultValue = -1)]
  138. public int MaxPageStateFieldLength {
  139. get {
  140. throw new NotImplementedException ();
  141. }
  142. set {
  143. throw new NotImplementedException ();
  144. }
  145. }
  146. #if notyet
  147. [MonoTODO]
  148. [ConfigurationProperty ("namespaces")]
  149. public NamespaceCollection Namespaces {
  150. get {
  151. throw new NotImplementedException ();
  152. }
  153. }
  154. #endif
  155. [MonoTODO]
  156. [ConfigurationProperty ("pageBaseType", DefaultValue = "System.Web.UI.Page")]
  157. public string PageBaseType {
  158. get {
  159. throw new NotImplementedException ();
  160. }
  161. set {
  162. throw new NotImplementedException ();
  163. }
  164. }
  165. [MonoTODO]
  166. [ConfigurationProperty ("pageParserFilterType", DefaultValue = "")]
  167. public string PageParserFilterType {
  168. get {
  169. throw new NotImplementedException ();
  170. }
  171. set {
  172. throw new NotImplementedException ();
  173. }
  174. }
  175. [MonoTODO]
  176. protected override ConfigurationPropertyCollection Properties {
  177. get {
  178. throw new NotImplementedException ();
  179. }
  180. }
  181. [MonoTODO]
  182. [ConfigurationProperty ("smartNavigation", DefaultValue = false)]
  183. public bool SmartNavigation {
  184. get {
  185. throw new NotImplementedException ();
  186. }
  187. set {
  188. throw new NotImplementedException ();
  189. }
  190. }
  191. [MonoTODO]
  192. [ConfigurationProperty ("styleSheetTheme", DefaultValue = "")]
  193. public string StyleSheetTheme {
  194. get {
  195. throw new NotImplementedException ();
  196. }
  197. set {
  198. throw new NotImplementedException ();
  199. }
  200. }
  201. #if notyet
  202. [MonoTODO]
  203. [ConfigurationProperty ("tagMapping")]
  204. public TagMapCollection TagMapping {
  205. get {
  206. throw new NotImplementedException ();
  207. }
  208. }
  209. #endif
  210. [MonoTODO]
  211. [ConfigurationProperty ("theme", DefaultValue = "")]
  212. public string Theme {
  213. get {
  214. throw new NotImplementedException ();
  215. }
  216. set {
  217. throw new NotImplementedException ();
  218. }
  219. }
  220. [MonoTODO]
  221. [ConfigurationProperty ("userControlBaseType", DefaultValue = "System.Web.UI.UserControl")]
  222. public string UserControlBaseType {
  223. get {
  224. throw new NotImplementedException ();
  225. }
  226. set {
  227. throw new NotImplementedException ();
  228. }
  229. }
  230. [MonoTODO]
  231. [ConfigurationProperty ("validateRequest", DefaultValue = true)]
  232. public bool ValidateRequest {
  233. get {
  234. throw new NotImplementedException ();
  235. }
  236. set {
  237. throw new NotImplementedException ();
  238. }
  239. }
  240. #if notyet
  241. [MonoTODO]
  242. [ConfigurationProperty ("viewStateEncryptionMode", DefaultValue = ViewStateEncryptionMode.Auto)]
  243. public ViewStateEncryptionMode ViewStateEncryptionMode {
  244. get {
  245. throw new NotImplementedException ();
  246. }
  247. set {
  248. throw new NotImplementedException ();
  249. }
  250. }
  251. #endif
  252. [MonoTODO]
  253. protected override void DeserializeSection (XmlReader reader)
  254. {
  255. throw new NotImplementedException ();
  256. }
  257. }
  258. }
  259. #endif