我已将一个类库项目添加到我的应用程序中。
在我的一个课程中,我需要使用 MembershipUser 类,但项目找不到它。我添加了对 System.Web、System.Web.Security 和 System.Security.Principal 的引用。
我不确定问题是什么。有人遇到过这个吗?
如果您使用 .NET 4.0,则需要引用System.Web.ApplicationServices.dll
集会。一如既往的文档会员用户 http://msdn.microsoft.com/en-us/library/system.web.security.membershipuser.aspx包含所有必要的信息:
Namespace: System.Web.Security
Assembly: System.Web.ApplicationServices (in System.Web.ApplicationServices.dll)
在该框架的早期版本中会员用户 http://msdn.microsoft.com/en-us/library/system.web.security.membershipuser(v=VS.85).aspx类位于System.Web.dll
集会。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)