How to use a App.config file in WPF applications?

前端 未结 8 2212
既然无缘
既然无缘 2020-12-04 13:59

I created an App.config file in my WPF application:


         


        
8条回答
  •  伪装坚强ぢ
    2020-12-04 14:31

    In my case, I followed the steps below.

    App.config

      
        
           
      
    
     
       
     
    
    
    

    Added System.Configuartion to my project.

    Added using System.Configuration statement in file at top.

    Then used this statement:

    string queuePath = ConfigurationManager.AppSettings["POCPublishSubscribeQueueName"].ToString();
    

提交回复
热议问题