Note that there are some explanatory texts on larger screens.

plurals
  1. POPass XML data as parameter in a function call
    text
    copied!<p>I'm copying the <code>MyApp.exe.config</code> file to a separate location as an xml. </p> <p>I'm using this custom config file to access and changes some settings when the application is running, rather than using the <code>ConfigurationManager.&lt;section&gt;</code> to modify the <code>app.config</code>. </p> <p>The problem is, the default app.config file might be updated at later stage on the user machine and I want to propagate these changes back to my custom config file.</p> <p>What is the best way to do this?</p> <pre><code>&lt;configSections&gt; &lt;section name="" type="" /&gt; &lt;/configSections&gt; &lt;appSettings&gt; &lt;add key="" value="" /&gt; &lt;/appSettings&gt; &lt;ConnectionManangerProviders&gt; &lt;provider name="" enabled="" type=""&gt; &lt;pollingInterval&gt;&lt;/pollingInterval&gt; &lt;/provider&gt; &lt;/ConnectionManagerProviders&gt; &lt;QueueManagerProviders&gt; &lt;provider name="" enabled="" type="unique" encrypted="" signed="" cryptoProvider="" /&gt; &lt;provider name="" enabled="" type="unique" encrypted="" signed="" cryptoProvider=""&gt; &lt;queueName&gt;&lt;/queueName&gt; &lt;/provider&gt; &lt;provider name="" enabled="" type="unique" encrypted="" signed="" cryptoProvider=""&gt; &lt;applicationName&gt;&lt;/applicationName&gt; &lt;connectionString&gt;&lt;/connectionString&gt; &lt;/provider&gt; &lt;/QueueManagerProviders&gt; </code></pre> <p>For example, this is how the configuration file looks. Let's say one of the values of the element under <code>&lt;QueueManagerProviders&gt;</code> is modified in the app.config, how can I pass the data in this file to a method so that the method can effectively parse through it and update the appropriate section in the custom config file that I created?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload