| |||||||||||||
<configSections> remove ElementASP.NET Syntax ASP.NET Configuration Sections Removes a reference to an inherited section and section group. <remove name = "section name" /> Attributes and ElementsThe following sections describe attributes, child elements, and parent elements. Attributes
Child ElementsNone. Parent Elements
RemarksThe remove element removes a reference to an inherited sections or section groups. New sections and section groups can be added to the collection in the current configuration file by using the section and sectionGroup elements. If a configuration file tries to use a configuration section after the handler reference is removed, ASP.NET issues the server error, ExampleThe following code example shows how to use the remove element in an application configuration file to remove a section that was previously defined in the Machine.config file. The following Machine.config file code declares a section named <configuration>
<configSections>
<section name = "sampleSection"
type = "System.Configuration.SingleTagSectionHandler" />
</configSections>
<sampleSection setting1 = "Value1"
setting2 = "value two"
setting3 = "third value" />
</configuration>
The following example application configuration file removes the <configuration>
<configSections>
<remove name = "sampleSection" />
</configSections>
</configuration>
See Also<configSections> Section <configSections> clear Element <configSections> section Element <configSections> sectionGroup Element |
| ||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme