-
The IConfigurationSectionHandler interface provides a mechanism to access customized sections of a configuration file.
-
The Create method is the only implementation detail necessary to fulfill the IConfigurationSectionHandler contract.
-
To be used safely, all classes that implement IConfigurationSectionHandler must be both thread safe and stateless.
-
The ConfigSections node of the configuration file is the main mechanism provided for implementing custom sections.
-
ConfigurationSection objects can be used to programmatically add configuration sections, as opposed to manually entering them through the configuration file.
-
To save any changes made to a Configuration object, use the Save method.
-
If an alternate file is to be used for changes to a Configuration object, SaveAs facilitates this.
-
The ApplicationSettingsBase class serves as wrapper to implement configurable application settings in .NET applications.
-
All settings stored by an ApplicationSettingsBase class use the LocalFileSettingsProvider for storage.
You can use the following questions to test your knowledge of the information in Lesson 4, "Configuration Management." The questions are also available on the companion CD if you prefer to review them in electronic form.
Answers | Answers to these questions and explanations of why each answer choice is right or wrong are located in the "Answers" section at the end of the book. |
Which methods of the Configuration class are valid ways to open a configuration file? (Choose all that apply.)
| ||
What method causes settings to be read from an IConfigurationSectionHandler object?
|
Answers
Correct Answers: A, B, C, and D
| |
Correct Answer: A
|
No comments:
Post a Comment