Export (0) Print
Expand All

SectionInformation.ForceDeclaration Method

Forces the associated configuration section to appear in the configuration file.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method ForceDeclaration() Forces the associated configuration section to appear in the configuration file.
Public method ForceDeclaration(Boolean) Forces the associated configuration section to appear in the configuration file, or removes an existing section from the configuration file.
Top

A configuration section is not written in a configuration file when it is inherited from a parent file. If you want the parent section to show in the child configuration file, you must set the ForceDeclaration to true. This makes a configuration file more portable from one computer to another. This also lets you make sure that the section exists even if you do not have control over parent configuration files.

Community Additions

ADD
Show:
© 2014 Microsoft