普通高校数字化学生就业指导系统的设计与实现外文翻译资料

 2022-11-22 16:15:19

Overview of the .Net framework

The .NET Framework is an integral Windows component that supports building and running the next generation of applications and XML Web services. It is designed to fulfill the following objectives:

Provide a consistent object-oriented programming environment whether object code is stored and executed locally, executed locally but Internet-distributed, or executed remotely.

Provide a code-execution environment that minimizes software deployment and versioning conflicts.

Provide a code-execution environment that promotes safe execution of code, including code created by an unknown or semi-trusted third party.

Provide a code-execution environment that eliminates the performance problems of scripted or interpreted environments.

Make the developer experience consistent across widely varying types of applications, such as Windows-based applications and Web-based applications.

Build all communication on industry standards to ensure that code based on the .NET Framework can integrate with any other code.

The .NET Framework has two main components:

The common language runtime: The common language runtime is the foundation of the .NET Framework. You can think of the runtime as an agent that manages code at execution time, providing core services such as memory management, thread management, and remoting, while also enforcing strict type safety and other forms of code accuracy that promote security and robustness. In fact, the concept of code management is a fundamental principle of the runtime. Code that targets the runtime is known as managed code, while code that does not target the runtime is known as unmanaged code.

.NET Framework class library: The class library, the other main component of the .NET Framework, is a comprehensive, object-oriented collection of reusable types that you can use to develop applications ranging from traditional command-line or graphical user interface (GUI) applications to applications based on the latest innovations provided by ASP.NET, such as Web Forms and XML Web services.

The .NET Framework can be hosted by unmanaged components that load the common language runtime into their processes and initiate the execution of managed code, thereby creating a software environment that can exploit both managed and unmanaged features. The .NET Framework not only provides several runtime hosts, but also supports the development of third-party runtime hosts.

For example, ASP.NET hosts the runtime to provide a scalable, server-side environment for managed code. ASP.NET works directly with the runtime to enable ASP.NET applications and XML Web services, both of which are discussed later in this topic.

Internet Explorer is an example of an unmanaged application that hosts the runtime (in the form of a MIME type extension). Using Internet Explorer to host the runtime enables you to embed managed components or Windows Forms controls in HTML documents. Hosting the runtime in this way makes managed mobile code (similar to Microsoftreg; ActiveXreg; controls) possible, but with significant improvements that only managed code can offer, such as semi-trusted execution and isolated file storage.

The following illustration shows the relationship of the common language runtime and the class library to your applications and to the overall system. The illustration also shows how managed code operates within a larger architecture.

.NET Framework in context

The following sections describe the main components and features of the .NET Framework in greater detail.

Features of the Common Language Runtime

The common language runtime manages memory, thread execution, code execution, code safety verification, compilation, and other system services. These features are intrinsic to the managed code that runs on the common language runtime.

With regards to security, managed components are awarded varying degrees of trust, depending on a number of factors that include their origin (such as the Internet, enterprise network, or local computer). This means that a managed component might or might not be able to perform file-access operations, registry-access operations, or other sensitive functions, even if it is being used in the same active application.

The runtime enforces code access security. For example, users can trust that an executable embedded in a Web page can play an animation on screen or sing a song, but cannot access their personal data, file system, or network. The security features of the runtime thus enable legitimate Internet-deployed software to be exceptionally feature rich.

The runtime also enforces code robustness by implementing a strict type-and-code-verification infrastructure called the common type system (CTS). The CTS ensures that all managed code is self-describing. The various Microsoft and third-party language compilers generate managed code that conforms to the CTS. This means that managed code can consume other managed types and instances, while strictly enforcing type fidelity and type safety.

In addition, the managed environment of the runtime eliminates many common software issues. For example, the runtime automatically handles object layout and manages references to objects, releasing them when they are no longer being used. This automatic memory management resolves the two most common application errors, memory leaks and invalid memory references.

The runtime also accelerates developer productivity. For example, programmers can write applications in their development language of choice, yet take full advantage of the runtime, the class library, and components written in other languages by other developers. Any compiler vendor who chooses to target the runtime can do so. Language compilers that target the .NET Framework make the features of the .NET Framework available to existing code w

剩余内容已隐藏,支付完成后下载完整资料


.NET框架的概要

.NET框架是支持创建和运行下一代的应用和XML网络服务的一个不可缺少的Windows组件。它被设计为要遵行以下宗旨:

提供一个一致的面向对象的编程技术环境,不论目标代码是被本地存放和本地执行,被本地执行但网络分布,或者被远程执行。

提供一个使软件部署和版本相冲突减到最小的代码运行环境。

提供一个促进代码被安全执行的代码运行环境,包括由未知或半信任的第三方创造的代码。

提供消灭脚本或解释环境的性能问题的代码运行环境。

使开发者体验一致广泛变化类型的应用,例如基于窗口的应用和基于互联网的应用。

建立关于业界标准的所有通信保证的代码根据。.NET框架可以与其他代码集成。

.NET框架有两个主要组成部分:

1.公共语言运行时: 公共语言运行时是.NET框架的基础。您可以把运行时间作为在执行代码处理时的一个代理,它提供了如内存管理,线程管理,和远程控制等的核心服务,同时也保证了严密型的安全性以及其它形式代码的准确性以促进其安全性和强大性。实际上,代码管理的概念是运行时的一个根本原则。以运行为目标的代码是受控代码,不以运行为目标的代码是非受控代码

2..NET框架类库: 类库是.NET框架的另一主要组分,是一个综合的,面向对象集成的可重用的类型,你可以从传统的命令线或者图形用户界面应用去开发应用基于ASP.NET所提供的最新的创新,例如网页形式和XML 网页服务。

.NET框架可以被非受控组件主导,它可以执行使公共运行时载入非受控组件的过程以及初始化受控代码的执行,因此创造了一个可以同时开发处理和非处理特征的软件环境。

.NET框架不仅提供了多种执行时间的主机,而且支持第三方执行时间的主机的发展。

例如,ASP .NET主持运行时为受控代码提供了一个可升级,可服务的环境。ASP .NET直接用运行时工作使ASP .NET应用和XML 网页服务能运行,两者在这个题目中被稍后讨论。

Internet Explorer 是一个非受控应用主持运行时(以MIME 类型引伸的形式)的例子。使用Internet Explorer 主持运行时使您可以在HTML 文件中嵌入受控组件或Windows形式控制。以这样的方式主持运行时使受控的移动代码(类似于Microsoft ActiveX Controls) 成为了可能,但只能提供重大的改善,如半信任的执行和被隔绝的文件存储。

以下例证显示了公共语言运行时和类库对您的应用及整个系统的关系。例证还显示了如何用更好的结构处理受控代码。

.NET框架背景

接下来的部分描述了.NET框架的主要组件及特点的更多细节。

公共语言运行时的特点

公共语言运行时处理内存,线程执行,编码执行,编码安全证明,编辑,以及其它的系统服务。这些特点是内部运行在公共语言运行时的受控代码。

关于安全,受控组件被授予不同程度的信任,根据包括他们的起源的一定数量的因素(譬如互联网,企业网络,或地方计算机)。这意味着,一个受控组件能否进行文件访问操作,登记访问操作,或者其它敏锐的功能,既使它是在同类活动的应用程序中被使用。

运行时使执行代码可以安全的访问。例如,用户能相信在一个可执行嵌入式的网页中可以在屏幕上播放动画或歌曲,但不能访问他们的个人数据,文件系统,或网络。运行时的安全特点因而使合法的互联网部署软件特点格外丰富。

运行时还通过一个类型严格且代码验证的基础设施来强制性执行代码称为公共类型系统(CTS)。CTS 保证,所有的受控代码是自我描述的。各种各样的微软和第三方汇编语言产生的受控代码符合了CTS。这意味着受控代码可消耗其它的受控类型和事例,同时严密地强制性执行保证了类型的保真度和安全性。

另外,运行时的受控环境解决了许多共同的软件问题。例如,运行时自动地处理对象布局和对象参考,当他们不再使用时通知他们。这种自动内存管理解决了二个最大的公共应用错误,记忆泄漏以及无效记忆参考。

运行时还加大了开发者的生产力度。例如,程序员能选择他们的发展语言写应用程序,还可以利用运行时,类库,以及组件编写由其它开发商开发的语言。选择运行时为目标的任一位编译器销售者都能做到如此。瞄准了.NET框架的语言编译器使得.NET框架可利用现有的代码的特征在某种语言中编写代码,很大地缓和了现有应用的迁移过程。

当运行时被设计为未来的软件,它还支持现今和过去的软件。受控代码和非受控代码之间的功用使开发者能继续使用必要的COM 组分和DLLs 。

运行时被设计用来提高表现力。虽然公共语言运行时提供了许多标准的运行时服务,受控代码没有被解释。叫及时(JIT)的特点编写使所有受控代码在系统的本地机器语言执行时都能运行。同时,内存管理去除了分割记忆的可能性且增加了进一步表现的记忆现场参考。

最后,运行时能由高性能,服务边缘的应用主持,例如Microsoft. SQL Server. 和互联网信息服务(IIS)。这些基本功能使您在使用受控代码编写您的企业逻辑时,还可以享受支持运行时主持的最佳产业企业服务器的优越表现。

.NET框架类库

.NET框架类库是紧密集成为公共语言运行时的一个可再用类型的集合。类库是面对对象被安置的,从您自己的受控代码提供键入来获得功能。这不仅使.NET框架的键入容易使用,还减少了学会.NET框架新特点的交流时间。另外,第三方组件能在.NET框架中无缝集成。

例如,.NET框架集成类应用了一系列接口使您可以用来发展自己的集成类。您的集成类就可以在.NET框架中无缝集成。

因为您会从一个面向对象的类库中获得期望,.NET框架类型使您能完成一系列公共的编程任务,包括如字符管理,数据搜集,数据库连通性,以及文件访问的任务。除这些共同的任务之外,类库包括了支持各种各样的特别发展的专业类型。例如,您能使用以下类型的应用和服务:

  • 控制台应用
  • 窗口GUI 应用(窗口形式)
  • ASP .NET应用
  • XML 网页服务
  • 窗口服务

例如,窗口形式类是一个大量的简化了Windows GUI 发展的可重用类型的综合设置。如果您编写ASP .NET网页形式的应用,您可以使用网页形式类。

客户应用开发

客户应用是基于窗口的编程中最接近于传统风格的一个应用。这些使得可以在屏幕上显示窗口或形式的应用类型。客户应用包括了如文字处理的软件和报表,以及传统商业应用如数据输入工具,报告工具等等的应用。客户应用通常使用窗口,菜单,按钮,以及其它的GUI 元素,并且他们可能访问如文件系统等的地方资源以及和外围设备,如打印机。

另一种客户应用是传统有效控制(现在被受控窗口形式控制替换了)对互联网网页进行部署。这种应用是类似于其它的客户应用: 它被本地执行,可以访问本地资源,包括图形元素。

从前,开发商创造了如使用C/C 与微软基础组(MFC) 的应用或以一个快速应用开发(RAD) 环境如Microsoftreg; Visual Basicreg;。.NET框架合并了这些现有的产品的方面,大量地简化了客户应用的发展的同步开发环境。

包含在.NET框架中的窗口形式类被设计用来开发图像用户界面。您可以容易地创建命令窗口,按钮,菜单,工具栏,以及其他必要的灵活性以适应变化的业务需求的屏幕元素。

例如,.NET框架提供了简单直观的特点,调整了相关的财产形式。在某些情况下基本的操作系统不支持直接地改变这些属性,而且在这些情况下.NET框架自动地重建这个形式。这是的许多方式中的一种,它使用. NET框架集成开发者的接口,使编码更加简单,更加一致。

不同于ActiveX有效控制,窗口形式控制对用户的计算机访问可以采用半信任的访问形式。这意味着二进制或本地执行代码可以访问用户系统中的一些资源(例如GUI 元素和限制文件访问) 所不能访问或削弱的其它资源。由于代码可以安全的访问,许多应用一旦需要被安装在用户的系统就可以通过网络实时传播。您的应用可以实现一种类似于网页传播的地方应用的特点。

服务器应用开发

在受控处理的世界中的服务器边缘应用被实施通过执行时主机而被施行。非受控应用主持公共语言运行时,这允许您定制的受控代码去控制服务器的行为。这个模型提供给您获取主服务器的表现和可测量性时的公共语言运行时和类库的所有特点。

以下例证显示一个基本的网络概要,受控代码在不同的服务器环境中运行。当您的应用逻辑通过受控代码执行时,如IIS 和SQL 服务的服务可以执行基本标准操作。

ASP .NET是使开发者使用.NET网络去开发基于网页应用的主环境。然而,ASP.NET 有不止一个的运行时主机; 它是一个为发展网页站点和互联网分布的对象而使用受控被处理的代码的完全性结构。网页形式和XML 网页服务都使用IIS 和ASP .NET作为为应用的出版机制,而且这两种应用在.NET框架中都有一个支持类的集合。

XML 网页服务,基于互联网技术的重要改演变,与公共网页站点相似的分布式的,服务器边缘应用的组件。但是,不同于基于互联网的应用,XML 网页服务组件没有UI 而且不以如Internet Explorer 和Netscape Navigator之类的浏览器为目标。反之,XML 网页服务包括了被设计为由其它应用消耗的可再用的软件元件如传统客户应用,基于互联网的应用,或者甚至于其它的XML 网页服务。最终,XML 网页服务技术迅速地投入到互联网的高度分布式环境应用开发和传播中。

如果您使用了ASP 技术的更加早期的版本,您会立刻注意到ASP.NET 的改善和网页形式所提供的改善。例如,您能应用支持ASP.NET的任何一种语言开发网页形式的网页。另外,您的代码不再需要与您的HTTP 文本分享同样的文件(虽然如果它可以继续这样操做的话您会更加的满意)。网络形式网页用当地机器语言执行因为,象其他的受控应用,他们利用运行时。相反,非受控 ASP 网页总是脚本使用和解释。ASP.,NET网页是更加快速的,功能化的,而且比非受控 ASP 网页更加容易发展因为他们和任何一种受控应用一样与运行时相处融洽。

.NET框架还提供类和工具的一个集合去帮助XML 网页服务应用的开发和消耗。XML 网页服务被建立在诸如SOAP(远程操作协议),XML (一种延伸性数据格式),以及WSDL (网页服务描述语言)的标准上 。.NET 框架被建立在这些标准以促进用非微软解答的共用。

例如,包括.NET框架SDK的网页服务描述语言工具服务能在网页中询问一个XML 网页服务从而解析它的WSDL 描述,并且编写C# 或Visual.basic 原始代码,使您可以成为XML 网页服务的一个用户。原始代码可以从类库中的类中创造类,类库可以用SOAP和XML 解析处理所有的下层通信。虽然您能直接地使用类库消耗XML 网页服务,网页服务描述语言工具和包含SDK的其它工具促进了.NET框架的努力开发。

如果您开发和出版您自己的XML 网页服务,.NET框架提供了一系列符合所有基本通信的标准类,例如SOAP,WSDL,和XML。使用那些类使您集中于您的服务逻辑,而忽略了自己的通信基础设施所需的软件开发分配。

最后,象在受控环境中的网页一样,您的XML 网页服务在使用IIS 的可升级通信将以当地机器语言的速度运行。

剩余内容已隐藏,支付完成后下载完整资料


资料编号:[22773],资料为PDF文档或Word文档,PDF文档可免费转换为Word

原文和译文剩余内容已隐藏,您需要先支付 30元 才能查看原文和译文全部内容!立即支付

以上是毕业论文外文翻译,课题毕业论文、任务书、文献综述、开题报告、程序设计、图纸设计等资料可联系客服协助查找。