首页 > 移动平台 > 详细

C#配置文件(App.config)

时间:2016-01-13 02:14:42      阅读:169      评论:0      收藏:0      [点我收藏+]
以下代码配置在App.config中
<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <configSections>
    </configSections>
    <connectionStrings>
      //Data Source路径是在debug下
        <add name="ProcessSoftware.Properties.Settings.ProcessSoftwareConnectionString"
            connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Data/ProcessSoftware.mdb"
            providerName="System.Data.OleDb" />
        <add name="MysqlConnectionString"
            connectionString="Server=localhost;Database=rsda;Uid=root;Pwd=root;CharSet=utf8"
            providerName="MySQLProv" />
    </connectionStrings>
  <appSettings>
    <add key="replace" value="bin\Debug\"/>
  </appSettings>
    <startup>
    <supportedRuntime version="v2.0.50727"/></startup>
</configuration>

?

C#配置文件(App.config)

原文:http://ruohanfly.iteye.com/blog/2269969

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!