In .:
[mono.git] / mcs / class / System.Web / System.Web.Configuration_2.0 / PagesSection.cs
index a0fb90174d31c5fe653b54104f4b6da83eeff478..768f4b1c39d0b52cf86300867166e8a67fc337bd 100644 (file)
@@ -66,33 +66,44 @@ namespace System.Web.Configuration
 
                static PagesSection ()
                {
-                       asyncTimeoutProp = new ConfigurationProperty ("asyncTimeout", typeof(TimeSpan), null);
+                       asyncTimeoutProp = new ConfigurationProperty ("asyncTimeout", typeof (TimeSpan), null,
+                                                                     PropertyHelper.TimeSpanSecondsConverter,
+                                                                     PropertyHelper.PositiveTimeSpanValidator,
+                                                                     ConfigurationPropertyOptions.None);
                        autoEventWireupProp = new ConfigurationProperty ("autoEventWireup", typeof(bool), true);
                        bufferProp = new ConfigurationProperty ("buffer", typeof(bool), false);
-                       controlsProp = new ConfigurationProperty ("controls", typeof(TagPrefixCollection), null);
+                       controlsProp = new ConfigurationProperty ("controls", typeof(TagPrefixCollection), null,
+                                                                 null, null, ConfigurationPropertyOptions.None);
                        enableEventValidationProp = new ConfigurationProperty ("enableEventValidation", typeof (bool), true);
-                       enableSessionStateProp = new ConfigurationProperty ("enableSessionState", typeof (PagesEnableSessionState), true);
+                       enableSessionStateProp = new ConfigurationProperty ("enableSessionState", typeof (PagesEnableSessionState), PagesEnableSessionState.True);
                        enableViewStateProp = new ConfigurationProperty ("enableViewState", typeof (bool), true);
                        enableViewStateMacProp = new ConfigurationProperty ("enableViewStateMac", typeof (bool), true);
                        maintainScrollPositionOnPostBackProp = new ConfigurationProperty ("maintainScrollPositionOnPostBack", typeof (bool), false);
                        masterPageFileProp = new ConfigurationProperty ("masterPageFile", typeof (string), "");
                        maxPageStateFieldLengthProp = new ConfigurationProperty ("maxPageStateFieldLength", typeof (int), -1);
-                       modeProp = new ConfigurationProperty ("compilationMode", typeof (CompilationMode), CompilationMode.Always);
-                       namespacesProp = new ConfigurationProperty ("namespacesProp", typeof (NamespaceCollection), null);
+                       modeProp = new ConfigurationProperty ("compilationMode", typeof (CompilationMode), CompilationMode.Always,
+                                                             new GenericEnumConverter (typeof (CompilationMode)), PropertyHelper.DefaultValidator,
+                                                             ConfigurationPropertyOptions.None);
+                       namespacesProp = new ConfigurationProperty ("namespaces", typeof (NamespaceCollection), null,
+                                                                   null, null, ConfigurationPropertyOptions.None);
                        pageBaseTypeProp = new ConfigurationProperty ("pageBaseType", typeof (string), "System.Web.UI.Page");
-                       pageParserFilterTypeProp = new ConfigurationProperty ("pageParserFilterTypeProp", typeof (string), "");
+                       pageParserFilterTypeProp = new ConfigurationProperty ("pageParserFilterType", typeof (string), "");
                        smartNavigationProp = new ConfigurationProperty ("smartNavigation", typeof (bool), false);
                        styleSheetThemeProp = new ConfigurationProperty ("styleSheetTheme", typeof (string), "");
-                       tagMappingProp = new ConfigurationProperty ("tagMapping", typeof (TagMapCollection), null);
+                       tagMappingProp = new ConfigurationProperty ("tagMapping", typeof (TagMapCollection), null,
+                                                                   null, null, ConfigurationPropertyOptions.None);
                        themeProp = new ConfigurationProperty ("theme", typeof (string), "");
-                       userControlBaseTypeProp = new ConfigurationProperty ("userControlBaseTypeProp", typeof (string), "System.Web.UI.UserControl");
+                       userControlBaseTypeProp = new ConfigurationProperty ("userControlBaseType", typeof (string), "System.Web.UI.UserControl");
                        validateRequestProp = new ConfigurationProperty ("validateRequest", typeof (bool), true);
-                       viewStateEncryptionModeProp = new ConfigurationProperty ("viewStateEncryptionMode", typeof (ViewStateEncryptionMode), ViewStateEncryptionMode.Auto);
+                       viewStateEncryptionModeProp = new ConfigurationProperty ("viewStateEncryptionMode", typeof (ViewStateEncryptionMode), ViewStateEncryptionMode.Auto,
+                                                                                new GenericEnumConverter (typeof (ViewStateEncryptionMode)), PropertyHelper.DefaultValidator,
+                                                                                ConfigurationPropertyOptions.None);
 
                        properties = new ConfigurationPropertyCollection ();
                        properties.Add (asyncTimeoutProp);
                        properties.Add (autoEventWireupProp);
                        properties.Add (bufferProp);
+                       properties.Add (controlsProp);
                        properties.Add (enableEventValidationProp);
                        properties.Add (enableSessionStateProp);
                        properties.Add (enableViewStateProp);
@@ -101,10 +112,12 @@ namespace System.Web.Configuration
                        properties.Add (masterPageFileProp);
                        properties.Add (maxPageStateFieldLengthProp);
                        properties.Add (modeProp);
+                       properties.Add (namespacesProp);
                        properties.Add (pageBaseTypeProp);
                        properties.Add (pageParserFilterTypeProp);
                        properties.Add (smartNavigationProp);
                        properties.Add (styleSheetThemeProp);
+                       properties.Add (tagMappingProp);
                        properties.Add (themeProp);
                        properties.Add (userControlBaseTypeProp);
                        properties.Add (validateRequestProp);