PrepAway - Latest Free Exam Questions & Answers

What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You are developing a .NET Framework 2.0 Web application. You need to access the configuration data for the application.
You do not need read-only access to the configuration data whilst your solution provides the maximum performance.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
The GetSection method of the Configuration class should be used

B.
The GetSection method of the ConfigurationManager class should be used

C.
The GetSectionGroup method of the Configuration class should be used

D.
The GetSection method of the WebConfigurationManager class should be used

Explanation:
The configuration class in question is designed to programmatically access configuration information for Web applications. The GetSection static method retrieves the cached configuration information.
Incorrect Answers:
A: The method in question does allow programmatic access to all configuration files but it does not cache configuration values for the current application.
B: This should be avoided at all costs as it is best suited for retrieving information for Windows client applications.
C: This method is used to only retrieve specific section groups from the configuration object similar to the GetSection method.

One Comment on “What should you do?


Leave a Reply