Wednesday, July 13, 2011

Key-Value Pairs in .NET

You can add these to App.config and Web.config.



  <appSettings>
    <add key="blog" value="playingtree"/>
  </appSettings>


To read it,


using System.configuration;


ConfigurationManager.AppSettings["ReportProcessingRoot"];

No comments:

Post a Comment