using System;
+using System.ComponentModel;
using System.Configuration;
#if NET_2_0
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 ();