Write values in app.config file

后端 未结 10 921
生来不讨喜
生来不讨喜 2020-11-29 01:46

can anyone please help me how can I set/store values in the app.config file using c#, is it possible at all?

10条回答
  •  攒了一身酷
    2020-11-29 01:57

    Yes you can - see ConfigurationManager

    The ConfigurationManager class includes members that enable you to perform the following tasks:

    • Read and write configuration files as a whole.

    Learn to use the docs, they should be your first port-of call for a question like this.

提交回复
热议问题