This article is a mirror article of machine translation, please click here to jump to the original article.

View: 17909|Reply: 0

[ASP.NET] ConfigurationSection

[Copy link]
Posted on 8/20/2018 2:27:35 PM | | | |
The ConfigurationSection class is mainly used to extend the node information in the custom webcongfig. We can easily obtain the [Custom Node Object] ConfigurationSection class in the following ways, which is mainly convenient for us to use to extend the node information in the custom webcongfig. We can easily obtain the [Custom Node Object] in the following ways:

This topic takes the ActiveMQConfig configuration node as an example.

Our web.config original activemq configuration file looks like this:





We need to configure the above 3 lines of code under the appSettings node.

We tried to customize the node information using the ConfigurationSection class.

First, create a new ActiveMQConfig file with the following code:



web.config is configured as follows:

And with that, we're done!






Previous:The data is modified in Vue but the view cannot be updated
Next:php7.1 source code installation of openssl extension failed
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com