Click here to Skip to main content
15,899,126 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Now, many project depend on configure file, .net framework provide lots of useful class to read it.but i don't know the real process when read the specific elements(add) from app.config:
eg:
XML
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
  </configSections>
  <connectionStrings>
     <add name="LightCtrlSysLib.Properties.Settings.LightDbConnectionString"
      connectionString="Data Source=(local);Initial Catalog=LightDb;
                      Integrated Security=True"
      providerName="System.Data.SqlClient" />
  </connectionStrings>
</configuration>


is it will trigger specific event?I know my idea is so simple,if wrong.

how to design xml file realize this idea?
Posted
Updated 24-Mar-10 0:22am
v4

zhoudong wrote:
is it will trigger specific event?I


No, nothing in your app.config will trigger any event.
 
Share this answer
 
It's a static class that's initialized when the application starts. There are no events associated with the class.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900