none
link22.3 RRS feed

  • 问题

  • <appSettings>
        <add key="BaseName" value="ControlSystem." />
        <add key="BllBaseName" value="ControlSystem.BLL." />
        <add key="CacheBaseName" value="ControlSystem.Cache." />
        <add key="OpenCache" value="True" />
        <add key="UploadPath" value="/UploadFiles/News/" />
        <add key="UpFileType" value="jpg|gif|bmp|png|rar|zip|doc|docx|ppt|pptx|xls|xlsx|" />
        <add key="UploadheadPath" value="/UploadFiles/Heads/" />
        <add key="UpFileheadType" value="jpg|gif|" />
        <add key="file_root" value="Upfiles" />
        <add key="PortCityUrl" value="http://cq.api.518fang.com/router/rest.htm" />
        <add key="MapDefaultCity" value="哈尔滨" />
        <add key="CityCode" value="CQ" />
        <add key="ClientFollowday" value="12" />
        <!--<add key="ImageUrl" value="http://img.bpms.housecq.com" />-->
        <!--<add key="ImageUrl" value="http://mhimg.123456.com:9081" />-->
        <add key="UpAliyunUrl" value="http://wanjiaimg.oss-cn-beijing.aliyuncs.com/" />
        <add key="ImageUrl" value="http://alimg.55555558.com/" />
        <add key="ImageUrlUpload" value="http://192.168.2.203:8033" />
        <add key="GANGYUNOA" value="Link_22_3." />

     <add key="GANGYUNOA" value="Link_22_3." />

    这个Link_22_3是啥意思啊

    <add key="ImageUrl" value="http://alimg.55555558.com/" />

    这些都是什么意思?


    please verify my account


    • 已编辑 lctk 2016年9月27日 1:10
    2016年9月27日 1:09

答案

  •  你好,

    根据MSDN的解释,appSettings是用来存储在程序中需要用到的字段的,例如数据连接字符串和一些自定义的键值对。

    你贴出来的就是自定义的一些值。

    至于你列出来的是什么用的,我不清楚得要看你代码里面哪里用到了。

    MSDN解释:

    <appSettings> 項目儲存自訂的應用程式組態資訊,例如資料庫連接字串 (Connection String)、檔案路徑、XML Web Service URL 或儲存在應用程式的 .ini 檔案中的任何資訊。您可以在程式碼中,透過 System.Configuration.ConfigurationSettings 類別存取在 <appSettings> 項目中所指定的索引鍵/值配對。

    链接:https://msdn.microsoft.com/zh-tw/library/aa903313(v=vs.71).aspx

    • 已建议为答案 ThankfulHeart 2016年9月27日 11:25
    • 已标记为答案 lctk 2016年9月29日 3:03
    2016年9月27日 5:24

全部回复

  •  你好,

    根据MSDN的解释,appSettings是用来存储在程序中需要用到的字段的,例如数据连接字符串和一些自定义的键值对。

    你贴出来的就是自定义的一些值。

    至于你列出来的是什么用的,我不清楚得要看你代码里面哪里用到了。

    MSDN解释:

    <appSettings> 項目儲存自訂的應用程式組態資訊,例如資料庫連接字串 (Connection String)、檔案路徑、XML Web Service URL 或儲存在應用程式的 .ini 檔案中的任何資訊。您可以在程式碼中,透過 System.Configuration.ConfigurationSettings 類別存取在 <appSettings> 項目中所指定的索引鍵/值配對。

    链接:https://msdn.microsoft.com/zh-tw/library/aa903313(v=vs.71).aspx

    • 已建议为答案 ThankfulHeart 2016年9月27日 11:25
    • 已标记为答案 lctk 2016年9月29日 3:03
    2016年9月27日 5:24
  • hi,

      traceMessage = "参与量化的底级经纪人岗位集合";
                    StringBuilder sb_BottomStation_Sql = new StringBuilder();
                    sb_BottomStation_Sql.AppendFormat("select StationID from " + GANGYUNOA + "GANGYUNOA.dbo.ORG_Station where StationID not in (select ParentID from " + GANGYUNOA + "GANGYUNOA.dbo.ORG_Station where IsQuantify=1 and IsDelete=0) and IsQuantify=1 and IsDelete=0");
                    dt_BottomStation = SqlHelper.DbHelperSQL.RunSqlDataTable(sb_BottomStation_Sql.ToString());

     string GANGYUNOA = ConfigurationManager.AppSettings["GANGYUNOA"].ToString();


    please verify my account

    2016年9月27日 5:33
  • hi,

      traceMessage = "参与量化的底级经纪人岗位集合";
                    StringBuilder sb_BottomStation_Sql = new StringBuilder();
                    sb_BottomStation_Sql.AppendFormat("select StationID from " + GANGYUNOA + "GANGYUNOA.dbo.ORG_Station where StationID not in (select ParentID from " + GANGYUNOA + "GANGYUNOA.dbo.ORG_Station where IsQuantify=1 and IsDelete=0) and IsQuantify=1 and IsDelete=0");
                    dt_BottomStation = SqlHelper.DbHelperSQL.RunSqlDataTable(sb_BottomStation_Sql.ToString());

     string GANGYUNOA = ConfigurationManager.AppSettings["GANGYUNOA"].ToString();


    please verify my account

    从appConfig取出对应的Key那个的Value。

    ASP.NET Forum
    StackOverFlow
    FreeRice Donate
    Issues to report
    Free Tech Books Search and Download

    2016年9月27日 11:25