Go to the documentation of this file.00001 using System;
00002 using System.Collections.Generic;
00003 using System.Text;
00004 using System.Configuration;
00005
00006 namespace N2.Configuration
00007 {
00011 public class ErrorsElement : ConfigurationElement
00012 {
00013 [ConfigurationProperty("action", DefaultValue = ErrorAction.None)]
00014 public ErrorAction Action
00015 {
00016 get { return (ErrorAction)base["action"]; }
00017 set { base["action"] = value; }
00018 }
00019
00021 [ConfigurationProperty("handleWrongClassException", DefaultValue = true)]
00022 public bool HandleWrongClassException
00023 {
00024 get { return (bool)base["handleWrongClassException"]; }
00025 set { base["handleWrongClassException"] = value; }
00026 }
00027
00029 [ConfigurationProperty("maxErrorReportsPerHour", DefaultValue = 60)]
00030 public int MaxErrorReportsPerHour
00031 {
00032 get { return (int)base["maxErrorReportsPerHour"]; }
00033 set { base["maxErrorReportsPerHour"] = value; }
00034 }
00035
00036 [ConfigurationProperty("mailTo")]
00037 public string MailTo
00038 {
00039 get { return (string)base["mailTo"]; }
00040 set { base["mailTo"] = value; }
00041 }
00042
00043 [ConfigurationProperty("mailFrom")]
00044 public string MailFrom
00045 {
00046 get { return (string)base["mailFrom"]; }
00047 set { base["mailFrom"] = value; }
00048 }
00049 }
00050 }