2009-06-05 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web / System.Web.Configuration_2.0 / TraceSection.cs
index 6d898a947f24396b81008050d455d7ac9cfe4f41..9d46a69a1e3999c98c22464959bf9f92d8f1ac80 100644 (file)
@@ -30,6 +30,7 @@
 
 
 using System;
+using System.ComponentModel;
 using System.Configuration;
 
 #if NET_2_0
@@ -53,8 +54,13 @@ namespace System.Web.Configuration {
                        localOnlyProp = new ConfigurationProperty ("localOnly", typeof (bool), true);
                        mostRecentProp = new ConfigurationProperty ("mostRecent", typeof (bool), false);
                        pageOutputProp = new ConfigurationProperty ("pageOutput", typeof (bool), false);
-                       requestLimitProp = new ConfigurationProperty ("requestLimit", typeof (int), 10);
-                       traceModeProp = new ConfigurationProperty ("traceMode", typeof (TraceDisplayMode), TraceDisplayMode.SortByTime);
+                       requestLimitProp = new ConfigurationProperty ("requestLimit", typeof (int), 10,
+                                                                     TypeDescriptor.GetConverter (typeof (int)),
+                                                                     PropertyHelper.IntFromZeroToMaxValidator,
+                                                                     ConfigurationPropertyOptions.None);
+                       traceModeProp = new ConfigurationProperty ("traceMode", typeof (TraceDisplayMode), TraceDisplayMode.SortByTime,
+                                                                  new GenericEnumConverter (typeof (TraceDisplayMode)), null,
+                                                                  ConfigurationPropertyOptions.None);
                        writeToDiagnosticsTraceProp = new ConfigurationProperty ("writeToDiagnosticsTrace", typeof (bool), false);
                        properties = new ConfigurationPropertyCollection ();