title: Get header value from azure function
body: <p>I am able to get header value from an Azure function is JS using the following:</p>
  
  <pre><code>module.exports = async function (context, eventHubMessages) {
      context.log(`JavaScript eventhub trigger function called for message array ${eventHubMessages}`);
      const product = context.bindingData.propertiesArray[0].productFilter;
  }
  </code></pre>
  
  <p>How do I get the value of productFilter in an Azure function in C#.</p>
  
  <pre><code> public static void Run([EventHubTrigger("{EventHubName}", Connection = "EventHubConnectionAppSetting")] string myEventHubMessage, Binder binder, ILogger log)
              {
                  var parsedMessage = JToken.Parse(Convert.ToString(myEventHubMessage));
   DeviceInfo msg = parsedMessage.ToObject&lt;DeviceInfo&gt;();
  var deviceId = msg.deviceId;
      }
  </code></pre>