使用 ASP.NET 时,我们是否可以访问 .NET Framework 中的所有类?
这是 .NET 的子集还是完整的框架?如果它是子集,那么 ASP.NET 由哪些类(命名空间)组成,更重要的是它不由哪些类组成?我在文档中注意到,显然有一些命名空间仅适用于 Web 应用程序,反之亦然,适用于 Windows 应用程序,但这些命名空间仍然可以在 ASP.NET 中访问吗?
ASP.NET 的构成限制是基于我们设置的限制,还是像我前面提到的那样,它只是 .NET Framework 的一部分?
使用 WP7 进行开发显然存在一些限制,因此它只是 .NET Framework(紧凑型)的一个子集。据我所知,ASP.NET 没有理由有任何限制。这是正确的吗?
Is this a subset of .NET or is it the complete framework? If it's a subset, what classes (namespaces) is ASP.NET composed of, and more importantly which ones is it not composed of? I noticed in the documentation that there are obviously namespaces that only apply to web applications and vice versa with windows applications, but are these still accessible in ASP.NET?
Is the limit of what ASP.NET is made of based on the restrictions we set or is it, like I mentioned earlier, only a piece of the .NET Framework?
From developing with WP7 there obviously were restrictions, therefore making it only of a subset of the .NET Framework (Compact). From what I can tell there is no reason why ASP.NET should have any limitations. Is this correct?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ASP.NET 开发需要完整的 .NET 库(而不是客户端配置文件),因此您几乎可以访问框架中的所有命名空间,因此没有任何限制。另一方面,即使您可以访问像 System.Windows.Forms.Form 这样的对象,它们也不会完全发挥作用,因为没有桌面应用程序和桌面来显示表单(尽管除了在桌面上显示表单之外,您仍然可以将它们用于其他目的)。
附带说明一下,实际上您的托管提供商可能会限制框架中的某些功能(示例如下:http://faq.1and1.co.uk/scripting/asp_net/2.html),因此您必须与他们核实。
ASP.NET development requires full .NET library (not the client profile) so you'll virtually have access to all namespaces in the framework so no restrictions. On the other hand, even though you can access objects like
System.Windows.Forms.Form
, they won't be fully functional as there is no desktop application and a desktop to show the form on (though you can still use them for other purposes than displaying a form on the desktop).As a side note, actually your hosting provider may restrict some features in the framework (an example here: http://faq.1and1.co.uk/scripting/asp_net/2.html) so you'll have to check with them.