Azure Functions how to add application settings to bindings

后端 未结 2 2050
猫巷女王i
猫巷女王i 2021-02-14 01:35

I\'m trying to add some custom binding using my app settings for my Azure Function. I need to receive only string a string from my settings.

I would like to get

2条回答
  •  既然无缘
    2021-02-14 02:11

    I already found the solution. Just add:

    using System.Configuration;
    

    and add this line to code with the key ("simpleValue") value:

    ConfigurationManager.AppSettings["simpleValue"]
    

提交回复
热议问题