default configuration sections

T

Tony Johansson

Hi!

In this text they talk about default configuration sections in the
configuration file what is that. I have tried to search for default
configuration sections but haven't got any good explanations ?

You can use the ConfigurationSection class to add a custom section to the
configuration file. All the default configuration sections in the
configuration file are represented by the classes that are extended from the
ConfigurationSection class. The ConfigurationSection class inherits the
ConfigurationElement class and therefore it can be represented by a
ConfigurationElement. Every ConfigurationElement object creates an internal
ConfigurationPropertyCollection, which is a collection of
ConfigurationProperty objects. The ConfigurationProperty objects represent
the attributes or the child elements of the Configuration element.



//Tony
 
P

Patrice

Hello,

Always try the doc first. For example :
http://msdn.microsoft.com/en-us/library/w7w4sb0w(VS.80).aspx

Configuration files are based on a general mechanism. It allows to add
whatever you want to the config file and all what is found in the config
file is already defined for you the same way.

Search for the machine.config file (likely in
c:\windows\microsoft.net\framework\v2.0.507727\config\machine.config).
You'll see that it contains a configSections that define all what is made
available by default in your web.config file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top