Which of the following elements stores file paths, XML Web service URLs, or any information that is stored in the .ini file for an application?

Which of the following elements stores file paths, XML Web service URLs, or any information that is
stored in the .ini file for an application?

Which of the following elements stores file paths, XML Web service URLs, or any information that is
stored in the .ini file for an application?

A.
appSettings

B.
system.web

C.
configuration

D.
add

Explanation:
The appSettings element is used to store custom application configuration information, such as file
paths, or XML Web service URLs. It can also be used to store any information that is stored in the .ini
file for an application. The appSettings element contains the key/value pairs and can be accessed in
code using the ConfigurationManager class.

Answer C is incorrect. The configuration element specifies the required root element in every
configuration file that is used by the common language runtime and the .NET Framework
applications.

Answer B is incorrect. The system.web element specifies the root element for the ASP.NET
configuration settings in a configuration file and contains configuration elements that configure
ASP.NET Web applications and control how the applications behave.

Answer D is incorrect. The add element adds a custom application setting as a name/value pair to
the application settings collection.



Leave a Reply 0

Your email address will not be published. Required fields are marked *