從QTAgentService.exe.config訪問和讀取應用程序設置密鑰我需要從QTAgentService.exe.config文件中讀取並設置鍵「ControllerConnectionPeriodInSeconds」的值(該文件位於C:\ Program文件(x86)\ Microsoft Visual Studio 12.0 \ Common7 \ IDE)。如何從代碼
閱讀關於這裏ControllerConnectionPeriodInSeconds: https://msdn.microsoft.com/en-us/library/ff934570.aspx
我似乎無法找到任何方式來獲得在上面代碼中的值。 System.Configuration.ConfigurationManager.AppSettings也沒有幫助。
任何幫助將不勝感激!
謝謝!
Ryan, 謝謝您的回覆!我有一個類似於你我的想法的解決方案,但我希望有一些DLL或屬性,我可以用它來獲取值而無需執行上述操作。但是,謝謝你!我會嘗試這個並回復你! – Anu7
是的,如果你碰巧發現任何關於DLL或屬性的東西我可以使用 - 請讓我知道! – Anu7