場景
想要在程式中獲取App.config中設定的內容,
想要通過
ConfigurationManager.AppSettings[key];
來進行獲取,已經添加
using System.Configuration;
但是還是提示“當前背景關系中不存在名稱ConfigurationManager”

實作
除了添加using System.Configuration;
還要重新添加參考
右擊參考--添加--System.Configuration

轉載請註明出處,本文鏈接:https://www.uj5u.com/net/94888.html
標籤:C#
上一篇:C#語法--委托,架構的血液
