AppSettings

I

INeedADip

System.Configuration.ConfigurationManager.AppSettings["ConnectionString.SystemDB"]

Does this touch the config file every time? If I am using something like
this in my web application, isn't that a lot of IO?
 
T

Tom Porterfield

System.Configuration.ConfigurationManager.AppSettings["ConnectionString.SystemDB"]

Does this touch the config file every time? If I am using something like
this in my web application, isn't that a lot of IO?

I believe the values in your app config file are loaded into memory when
the application starts and stay there until the application is either
stopped or the file is modified (at which time the values are reloaded from
the file).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top