Using the Configuration Class
When you use one of the WebConfigurationManager Open methods—such as the OpenMachineConfiguration() or OpenWebConfiguration() methods—the method returns an instance of the Configuration class. This class supports the following properties:
• AppSettings—
Returns the appSettings configuration section.
• ConnectionStrings—
Returns the connectionStrings configuration section.
• EvaluationContext—
Returns an instance of the ContextInformation class that enables you to determine the context of the configuration information.
• FilePath—
Returns the physical file path to the configuration file.
• HasFile—
Returns True when there is a file that corresponds to the configuration information.
• Locations—
Returns a list of locations ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access