1.首先是Web.Config配置文件详解的参数含义(具体内容都在以下代码中有注释-我从网上找到的)

 1     public class ConfigData : ConfigurationSection
 2     {
 3         [ConfigurationProperty("ID")]
 4         public string ID 
 5         { 
 6             get { return (string)this["ID"];} 
 7             set {this["ID"]=value;} 
 8         }
 9         [ConfigurationProperty("Value")]
10         public string Value
11         {
12             get { return (string)this["Value"]; }
13             set { this["Value"] = value; }
14         }
15     }
View Code

相关文章: