为什么不HttpUtility类被认可? [英] Why isn't HttpUtility class being recognised?
本文介绍了为什么不HttpUtility类被认可?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图调用静态 HttpUtility.UrlEn code
在我的VB.NET工程,但IDE不能识别该类说,这是不声明。
I am trying to call the static HttpUtility.UrlEncode
in my VB.NET project, but the IDE is not recognising the class saying that it is not declared.
我已经导入的命名空间 System.Net
和的System.Web
到项目中。
I have imported the namespaces System.Net
and System.Web
to the project.
我也有以下内容在文件的顶部
I also have the following at the top of the file:
Imports System.Net
Imports System.Web
我是什么做错了吗?
What am I doing wrong?
推荐答案
添加引用 System.Web.dll中
到项目中。
这篇关于为什么不HttpUtility类被认可?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文