static CustomErrorsSection ()
{
- defaultRedirectProp = new ConfigurationProperty ("defaultRedirect", typeof (string));
- errorsProp = new ConfigurationProperty ("", typeof (CustomErrorCollection), null, ConfigurationPropertyOptions.IsDefaultCollection);
- modeProp = new ConfigurationProperty ("mode", typeof (CustomErrorsMode), CustomErrorsMode.RemoteOnly);
+ defaultRedirectProp = new ConfigurationProperty ("defaultRedirect", typeof (string), null);
+ errorsProp = new ConfigurationProperty ("", typeof (CustomErrorCollection), null,
+ null, PropertyHelper.DefaultValidator,
+ ConfigurationPropertyOptions.IsDefaultCollection);
+ modeProp = new ConfigurationProperty ("mode", typeof (CustomErrorsMode), CustomErrorsMode.RemoteOnly,
+ new GenericEnumConverter (typeof (CustomErrorsMode)),
+ PropertyHelper.DefaultValidator,
+ ConfigurationPropertyOptions.None);
properties = new ConfigurationPropertyCollection ();
properties.Add (defaultRedirectProp);
}
- [MonoTODO]
+ // Why override?
protected override void DeserializeSection (XmlReader reader)
{
base.DeserializeSection (reader);
-
- /* XXX more here?.. */
}
+ // Why override?
protected override void Reset (ConfigurationElement parentElement)
{
+ base.Reset (parentElement);
}
-
+
[ConfigurationProperty ("defaultRedirect")]
public string DefaultRedirect {
get { return (string) base [defaultRedirectProp];}