从Azure Functions中调用HttpUtitility

Rya*_*yan 1 .net c# rest azure azure-functions

我正在尝试从Azure Functions中进行REST调用.对于这些代码行:

var client = new HttpClient();
var queryString = HttpUtility.ParseQueryString(string.Empty);
Run Code Online (Sandbox Code Playgroud)

我收到以下错误.

The name 'HttpUtility' does not exist in the current context
Run Code Online (Sandbox Code Playgroud)

我在Azure.com中使用Web界面.

Mik*_*kov 6

您可能错过了对System.Web以下内容的正确引用:

#r "System.Web"
using System.Web; 
Run Code Online (Sandbox Code Playgroud)

请参阅引用外部程序集.