custom-configuration

    4熱度

    2回答

    我試圖創建遵循以下遞歸結構的自定義配置節: <monitorSettings> <monitor description="description1" /> <monitor description="description2" /> <monitor description="description3"> <monitor description="de

    3熱度

    2回答

    創建或編輯自定義配置節我有一個自定義配置部分,是這樣的: <fooSection> <foo> <add bar="cow" /> <add bar="dog" /> <add bar="goat" /> </foo> </fooSection> 我試圖找出如何我可以在測試添加/編輯本段在app.config文件夾具設置。我不知道從哪裏

    2熱度

    2回答

    我使用的是Visual Studio 2005,並使用「App.config」文件創建了一個應用程序。 當我嘗試編輯和添加新的價值到app.config文件它顯示了一個錯誤,請幫助我.. 我app.config文件包含: <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key

    9熱度

    1回答

    我在App.config中的.NET 3.5的Windows服務中的下列位: <configSections> <section name="ConfigurationServiceSection" type="SomeApp.Framework.Configuration.ConfigurationServiceSection, SomeApp.Framework"/> </conf

    1熱度

    2回答

    我正在嘗試創建一個如下所示的自定義配置。 <configuration> <configSections> <section name="actions" type="ConfigurationTest.ActionsConfig, UnitTestExperiments" /> <section name="action" type="ConfigurationTe

    4熱度

    2回答

    我有這樣的一個web.config: <MySection> <Setting1 Value="10" /> <Setting2 Value="20" /> <Setting3 Value="30" /> <Setting4 Value="40" /> </MySection> 我想讀取的所有部分「MySection」,並得到所有價值的List<str

    0熱度

    1回答

    我想知道是否有辦法讓子項目中的幾個自定義配置節互相追加? 例如,考慮項目結構: Solution\ MainGUI\ App.config Settings\ MainGUISettings.cs PrintingLibrary\ App.config Settings\ PrintingSettings.

    0熱度

    1回答

    我試圖從URL獲取原始數據並將其保存到Laravel 5.1的本地存儲文件夾中。我面臨的一個挑戰是,它只是在存儲文件夾中保存一個文件,該文件夾只替換現有文件,文件名爲資源ID#11,但它應該根據時間戳添加多個文件。 下面是我的代碼,我用我的控制器: public function add(Request $request) { $postdata = $request->getConte

    0熱度

    1回答

    的位置標籤創建/訪問自定義配置節我要添加各種位置的一些設置,並希望訪問按頁 <location path="Account" myAttr="true"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location> 或

    0熱度

    1回答

    的System.Configuration連接字符串配置類定義: ConnectionStringsSection : ConfigurationSection ConnectionStringSettingsCollection : ConfigurationElementCollection ConnectionStringSettings : ConfigurationElement