I'm creating a ConfigurationSection. In the example given the attribute allowLocation
of the <section>
attribute is set to true
. Looking at what this allowLocation means, I am still puzzled. On that page is says Determines whether the section can be used within the <location> element.
. I can not find documentation of this <location>
element.
What does this <location>
element do? What is it used for?
Here you go!
Specifies the resource that child configuration settings apply to and locks configuration settings, preventing the settings from being overridden by child configuration files.
And
The location element can enclose other elements, either to apply configuration settings to a specific resource or to lock the configuration settings.
Example:
<configuration>
<location path="Logon.aspx">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
</configuration>