亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

幫忙解釋下代碼吧,謝謝咯。

幫忙解釋下代碼吧,謝謝咯。

C#
瀟湘沐 2018-12-17 17:13:47
<P>&nbsp; public static ContentConfiguration GetConfig()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT size=3><STRONG>return (ContentConfiguration)ConfigurationManager.GetSection("peng/applications/content");<BR></STRONG></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</P> <P>&nbsp;請問上面的代碼是什么意思呢?請大俠指教。致敬。</P>
查看完整描述

2 回答

?
慕哥6287543

TA貢獻1831條經驗 獲得超10個贊

在你的配置文件(app.config, web.config)里會有類似于這樣的自定義配置節點 <peng> <applications> <content> </content> </applications> </peng> 上面的語句是返回content節點的內容。



查看完整回答
反對 回復 2018-12-20
?
FFIVE

TA貢獻1797條經驗 獲得超6個贊

得到自定義配置節 peng/applications/content為你配置節里的樹形目錄

查看完整回答
反對 回復 2018-12-20
  • 2 回答
  • 0 關注
  • 548 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號