Go to the documentation of this file.00001 using System.Configuration;
00002
00003 namespace N2.Configuration
00004 {
00008 public class PatternValueElement : ConfigurationElement
00009 {
00010 public PatternValueElement()
00011 {
00012 }
00013
00014 public PatternValueElement(string name, string pattern, string value, bool serverValidate)
00015 {
00016 Name = name;
00017 Pattern = pattern;
00018 Value = value;
00019 ServerValidate = serverValidate;
00020 }
00021
00022
00024 [ConfigurationProperty("name", IsRequired = true, IsKey = true)]
00025 public string Name
00026 {
00027 get { return (string)base["name"]; }
00028 set { base["name"] = value; }
00029 }
00030
00032 [ConfigurationProperty("pattern")]
00033 public string Pattern
00034 {
00035 get { return (string)base["pattern"]; }
00036 set { base["pattern"] = value; }
00037 }
00038
00040 [ConfigurationProperty("value")]
00041 public string Value
00042 {
00043 get { return (string)base["value"]; }
00044 set { base["value"] = value; }
00045 }
00046
00048 [ConfigurationProperty("serverValidate", DefaultValue = true)]
00049 public bool ServerValidate
00050 {
00051 get { return (bool)base["serverValidate"]; }
00052 set { base["serverValidate"] = value; }
00053 }
00054 }
00055 }