6. How To Read Values from app.config File in C# | app.config | C# Interview Questions

preview_player
Показать описание
Please use the following link to install the Katalon Studio:

System.Configuration namespace
ConfigurationManager.AppSettings["key"]
how to read global values in c#

Рекомендации по теме
Комментарии
Автор

hii sir
in visualstudio u are saying right click on references---add references--check on system.configuration checkbox....
we are importing base class library called system.configuration then why it is necessary to check the system.configuration checkbox ??
pls clarify my doubt???

locallocal
Автор

thank you somo much Krishna, i liked the explanation

lorenzmolina
Автор

and how to set some value in the config file permanently with code?

failtv
Автор

Is it possible to use JSON instead of XML?

HGAMES
Автор

I am getting bull value not able to read the value form app.config file below is my code string ss =
string s =

nileshshegokar
Автор

Does the library read the config file from any path in the project?

joeb.
Автор

how to set configuration setting via app config in c#

antonyxavierw