简体   繁体   中英

App.config or Web.config

I'm using httpwebrequest method to call some APIs for data and I want to set value to its timeout property, my goal is to set the value in a config file so that no compiling is needed when the value is reset. I'm not sure which config file is the appropriate one?

如果您正在使用某些Web应用程序,或者需要在服务器端使用该值,那么请使用web.config ;如果您正在使用某些桌面应用程序,或者需要在客户端使用此值,那么请使用app.config

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM