Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Runtime appconfig value changes

I want to ask about reading the app config property value.

I can change some of the app config property value during runtime and I could use that property value in my code. So, how to get that runtime changed app config property value in my code? Is there any options to get the runtime changed app config value in C#.NET?

like image 817
dinu Avatar asked Jun 23 '26 21:06

dinu


1 Answers

After saving the changes to the app config, do like this

ConfigurationManager.RefreshSection(sectionName);

to get the updated values.

Have a look at this page.

like image 129
Bibhu Avatar answered Jun 26 '26 11:06

Bibhu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!