<i id='22Lzd'><tr id='22Lzd'><dt id='22Lzd'><q id='22Lzd'><span id='22Lzd'><b id='22Lzd'><form id='22Lzd'><ins id='22Lzd'></ins><ul id='22Lzd'></ul><sub id='22Lzd'></sub></form><legend id='22Lzd'></legend><bdo id='22Lzd'><pre id='22Lzd'><center id='22Lzd'></center></pre></bdo></b><th id='22Lzd'></th></span></q></dt></tr></i><div id='22Lzd'><tfoot id='22Lzd'></tfoot><dl id='22Lzd'><fieldset id='22Lzd'></fieldset></dl></div>

<tfoot id='22Lzd'></tfoot>

    <bdo id='22Lzd'></bdo><ul id='22Lzd'></ul>

    1. <small id='22Lzd'></small><noframes id='22Lzd'>

      <legend id='22Lzd'><style id='22Lzd'><dir id='22Lzd'><q id='22Lzd'></q></dir></style></legend>
    2. 从 Azure 函数读取设置

      Reading settings from a Azure Function(从 Azure 函数读取设置)
      <i id='041Pn'><tr id='041Pn'><dt id='041Pn'><q id='041Pn'><span id='041Pn'><b id='041Pn'><form id='041Pn'><ins id='041Pn'></ins><ul id='041Pn'></ul><sub id='041Pn'></sub></form><legend id='041Pn'></legend><bdo id='041Pn'><pre id='041Pn'><center id='041Pn'></center></pre></bdo></b><th id='041Pn'></th></span></q></dt></tr></i><div id='041Pn'><tfoot id='041Pn'></tfoot><dl id='041Pn'><fieldset id='041Pn'></fieldset></dl></div>
        <bdo id='041Pn'></bdo><ul id='041Pn'></ul>

        1. <small id='041Pn'></small><noframes id='041Pn'>

            <tbody id='041Pn'></tbody>

          <legend id='041Pn'><style id='041Pn'><dir id='041Pn'><q id='041Pn'></q></dir></style></legend>

            <tfoot id='041Pn'></tfoot>
              • 本文介绍了从 Azure 函数读取设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我是

                我做错了什么?谢谢

                解决方案

                你可以使用 System.Environment.GetEnvironmentVariable 像这样:

                var value = Environment.GetEnvironmentVariable("your_key_here")

                每当您在本地或在 Azure 上工作时,它都会获取设置.

                I'm new to Azure's function... I've created a new timer function (will be fired every 30 minutes) and it has to perform a query on a URL, then push data on the buffer..

                I've done

                public static void Run(TimerInfo myTimer, TraceWriter log)
                {
                 var s = CloudConfigurationManager.GetSetting("url");
                 log.Info(s);
                }
                

                And in my function settings I've

                What am I doing wrong? Thanks

                解决方案

                You can use System.Environment.GetEnvironmentVariable like this:

                var value = Environment.GetEnvironmentVariable("your_key_here")
                

                This gets settings whenever you're working locally or on Azure.

                这篇关于从 Azure 函数读取设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Populate ListBox with a IEnumrable on another thread (winforms)(在另一个线程(winforms)上使用 IEnumrable 填充 ListBox)
                listbox selected item give me quot; System.Data.DataRowViewquot; , C# winforms(列表框选择的项目给我quot;System.Data.DataRowView, C# Winforms)
                Cannot remove items from ListBox(无法从列表框中删除项目)
                Preventing ListBox scrolling to top when updated(更新时防止列表框滚动到顶部)
                Drag and drop from list to canvas on windows phone with MVVM(使用 MVVM 在 Windows 手机上从列表拖放到画布)
                Deselection on a WPF listbox with extended selection mode(具有扩展选择模式的 WPF 列表框上的取消选择)
                  <tbody id='onFFV'></tbody>
                  <tfoot id='onFFV'></tfoot>

                  <i id='onFFV'><tr id='onFFV'><dt id='onFFV'><q id='onFFV'><span id='onFFV'><b id='onFFV'><form id='onFFV'><ins id='onFFV'></ins><ul id='onFFV'></ul><sub id='onFFV'></sub></form><legend id='onFFV'></legend><bdo id='onFFV'><pre id='onFFV'><center id='onFFV'></center></pre></bdo></b><th id='onFFV'></th></span></q></dt></tr></i><div id='onFFV'><tfoot id='onFFV'></tfoot><dl id='onFFV'><fieldset id='onFFV'></fieldset></dl></div>
                  • <bdo id='onFFV'></bdo><ul id='onFFV'></ul>

                    <small id='onFFV'></small><noframes id='onFFV'>

                        <legend id='onFFV'><style id='onFFV'><dir id='onFFV'><q id='onFFV'></q></dir></style></legend>