You are on page 1of 9



United States - English
Argentina (Español)
Australia (English)
Brasil (Português)
Canada (English)
Canada (Français)
ä¸å›½ (简体ä¸æ–‡)
Colombia (Español)
Deutschland (Deutsch)
España (Español)
France (Français)
India (English)
Italia (Italiano)
日本 (日本語)
México (Español)
Perú (Español)
United Kingdom (English)
United States (English)

Welcome Sign in


Visual Studio Developer Center
Printer Friendly Version


Add Content...
Click to Rate and Give Feedback

Give feedback on this content


NET Framework  Conceptual Overview  Common Language Runtime  Common Type System  Metadata and Self-Describing Components  Cross-Language Interoperability  Assemblies  Application Domains  Class Library Overview  Runtime Hosts  Accessing Data  . Components.NET Framework Core Development  . and Services  .NET Framework Code  XML Documents and Data  Globalizing and Localizing Applications  .NET Framework Advanced Development  Security in Native and . MSDN Library  Azure Services Platform  Bing Services  Design Tools  Development Tools and Languages  Visual Studio 2010 Beta 1  Visual Studio 2008  Visual Studio 2005  Visual Studio  Introducing Visual Studio  Integrated Development Environment for Visual Studio  Deciding Which Technologies and Tools To Use  Windows-based Applications.NET Compact Framework  Samples  QuickStarts  Visual Basic .NET Framework Programming in Visual Studio  Quick Technology Finder  What's New in the .NET Framework  Overview of the .

0  Visual FoxPro  Microsoft Robotics  Windows SDK  Mobile and Embedded Development  . Visual Basic Power Packs  Visual C#  Visual C++  Visual J#  JScript  Visual Web Developer  Visual Studio Tools for Office  Smart Device Development  Tools and Features  Visual Studio SDK  Glossary (.NET Framework)  Visual SourceSafe  Visual Studio Team System  Technical Articles  Visual Studio Extensibility  Visual Studio .NET Development  Office Development  Open Specifications  patterns & practices  Servers and Enterprise Development  Web Development  Win32 and COM Development MSDN Please Wait MSDN Library Please Wait Development Tools and Languages  Visual Studio 2010 Beta 1  Visual Studio 2008  Visual Studio 2005 .NET  XNA Game Studio  Visual Studio 6.

or executed remotely.5  Microsoft Visual Studio 2010/.  To provide a code-execution environment that eliminates the performance problems of scripted or interpreted environments.NET Framework 4.0 Other versions are also available for the following:  Microsoft Visual Studio 2003/.0 Want more? Here are some additional resources on this topic: QuickStarts  .NET Framework is designed to fulfill the following objectives:  To provide a consistent object-oriented programming environment whether object code is stored and executed locally.NET Framework 1. The . . Visual Studio .. including code created by an unknown or semi-trusted third party.  To provide a code-execution environment that minimizes software deployment and versioning conflicts.NET Framework Conceptual Overview The .NET Framework Developer's Guide .1  . executed locally but Internet-distributed. Please Wait Overview of the .NET Framework 2.NET Framework 3.NET Framework Please Wait Conceptual Overview Switch on low bandwidth view This page is specific to Microsoft Visual Studio 2005/..0  Visual FoxPro  Microsoft Robotics  Windows SDK Visual Studio 2005 Please Wait Visual Studio Please Wait .  To provide a code-execution environment that promotes safe execution of code. such as Windows-based applications and Web-based applications.NET Framework is an integral Windows component that supports building and running the next generation of applications and XML Web services.NET  XNA Game Studio  Visual Studio 6.  To make the developer experience consistent across widely varying types of applications.NET Framework Programming in Visua.0  Microsoft Visual Studio 2008/.NET Framework 3.

The following illustration shows the relationship of the common language runtime and the class library to your applications and to the overall system.NET Framework class library. The class library. and remoting.NET Framework has two main components: the common language runtime and the . but with significant improvements that only managed code can offer. The common language runtime is the foundation of the .NET Framework can integrate with any other code. the concept of code management is a fundamental principle of the runtime. Code that targets the runtime is known as managed code.NET hosts the runtime to provide a scalable. the other main component of the . objectoriented collection of reusable types that you can use to develop applications ranging from traditional commandline or graphical user interface (GUI) applications to applications based on the latest innovations provided by ASP. thread management. both of which are discussed later in this topic. while also enforcing strict type safety and other forms of code accuracy that promote security and robustness. Using Internet Explorer to host the runtime enables you to embed managed components or Windows Forms controls in HTML documents. The . For example. such as Web Forms and XML Web services. such as semi-trusted execution and isolated file storage. but also supports the development of third-party runtime hosts.NET works directly with the runtime to enable ASP. . You can think of the runtime as an agent that manages code at execution time. thereby creating a software environment that can exploit both managed and unmanaged features. is a comprehensive.NET. The .NET Framework not only provides several runtime hosts.NET Framework. while code that does not target the runtime is known as unmanaged code. In fact.NET Framework can be hosted by unmanaged components that load the common language runtime into their processes and initiate the execution of managed code. server-side environment for managed code. providing core services such as memory management. ASP. Hosting the runtime in this way makes managed mobile code (similar to Microsoft® ActiveX® controls) possible. To build all communication on industry standards to ensure that code based on the . The illustration also shows how managed code operates within a larger architecture. ASP. Internet Explorer is an example of an unmanaged application that hosts the runtime (in the form of a MIME type extension).NET Framework in context .NET Framework. The .NET applications and XML Web services.

The security features of the runtime thus enable legitimate Internet-deployed software to be exceptionally feature rich. depending on a number of factors that include their origin (such as the Internet. This means that managed code can consume other managed types and instances. The various Microsoft and third-party language compilers generate managed code that conforms to the CTS. and components written in other languages by other developers. or network. programmers can write applications in their development language of choice. compilation. The runtime also accelerates developer productivity. or local computer). For example. thread execution.NET Framework in greater detail. but cannot access their personal data. . managed components are awarded varying degrees of trust. The runtime also enforces code robustness by implementing a strict type-and-code-verification infrastructure called the common type system (CTS). code safety verification. yet take full advantage of the runtime. This means that a managed component might or might not be able to perform file-access operations. and other system services. while strictly enforcing type fidelity and type safety. For example. or other sensitive functions. These features are intrinsic to the managed code that runs on the common language runtime. This automatic memory management resolves the two most common application errors. releasing them when they are no longer being used. Any compiler vendor who chooses to target the runtime can do so. the runtime automatically handles object layout and manages references to objects. In addition. file system. even if it is being used in the same active application.The following sections describe the main components and features of the . enterprise network. users can trust that an executable embedded in a Web page can play an animation on screen or sing a song. For example. the managed environment of the runtime eliminates many common software issues. registry-access operations. The runtime enforces code access security. With regards to security. the class library. memory leaks and invalid memory references. Features of the Common Language Runtime The common language runtime manages memory. The CTS ensures that all managed code is self-describing. code execution.

NET Framework. consistent development environment that drastically simplifies the development of client applications. Finally.NET Framework types enable you to accomplish a range of common programming tasks.NET Framework make the features of the . This infrastructure enables you to use managed code to write your business logic. you can use the .  XML Web services.Language compilers that target the . you can use the Web Forms classes.  ASP.NET Web Form application. developers created such applications using C/C++ in conjunction with the Microsoft Foundation Classes (MFC) or with a rapid application development (RAD) environment such as Microsoft® Visual Basic®. Client Application Development Client applications are the closest to a traditional style of application in Windows-based programming. such as Microsoft® SQL Serverâ„¢ and Internet Information Services (IIS).NET Framework collection classes implement a set of interfaces that you can use to develop your own collection classes.NET Framework. providing types from which your own managed code can derive functionality. the . Your collection classes will blend seamlessly with the classes in the . This application is much like other client applications: it is executed natively. If you write an ASP.NET applications. greatly easing the migration process for existing applications. and other GUI elements. database connectivity. buttons. As you would expect from an object-oriented class library. and file access. Although the common language runtime provides many standard runtime services.  Windows services.NET Framework available to existing code written in that language. and they likely access local resources such as the file system and peripherals such as printers. In addition to these common tasks. . . server-side applications. as well as custom business applications such as data-entry tools. and so on.  Windows GUI applications (Windows Forms). managed code is never interpreted. including tasks such as string management.NET Framework to develop the following types of applications and services:  Console applications. the . Interoperability between managed and unmanaged code enables developers to continue to use necessary COM components and DLLs. menus. Another kind of client application is the traditional ActiveX control (now replaced by the managed Windows Forms control) deployed over the Internet as a Web page.NET Framework types easy to use. but also reduces the time associated with learning new features of the . In addition.NET Framework. the memory manager removes the possibilities of fragmented memory and increases memory locality-of-reference to further increase performance. Client applications usually employ windows.NET Framework class library is a collection of reusable types that tightly integrate with the common language runtime. reporting tools. it also supports software of today and yesterday. the Windows Forms classes are a comprehensive set of reusable types that vastly simplify Windows GUI development. The runtime is designed to enhance performance. In the past.NET Framework Class Library The . the runtime can be hosted by high-performance. data collection. This not only makes the . while still enjoying the superior performance of the industry's best enterprise servers that support runtime hosting. For example. Client applications include applications such as word processors and spreadsheets. The class library is object oriented. For example. the class library includes types that support a variety of specialized development scenarios.NET Framework incorporates aspects of these existing products into a single. These are the types of applications that display windows or forms on the desktop. and includes graphical elements. For example. A feature called just-in-time (JIT) compiling enables all managed code to run in the native machine language of the system on which it is executing. has access to local resources. While the runtime is designed for the software of the future. The . Meanwhile. third-party components can integrate seamlessly with classes in the . enabling a user to perform a task.

NET Framework integrates the developer interface. and in these cases the . However. The .The Windows Forms classes contained in the . XML Web services consist of reusable software components designed to be consumed by other applications. are distributed. they take full advantage of the runtime.NET Framework. you can develop Web Forms pages in any language that supports the . XML Web services are built on standards such as SOAP (a remote procedure-call protocol). Instead. Windows Forms controls have semi-trusted access to a user's computer. Both Web Forms and XML Web services use IIS and ASP. buttons. Unlike ActiveX controls. menus. unmanaged ASP pages are always scripted and interpreted.NET pages are faster. parse its WSDL description. Web Forms pages execute in native machine language because. XML (an extensible data format). an important evolution in Web-based technology. The . The following illustration shows a basic network schema with managed code running in different server environments. XML Web services components have no UI and are not targeted for browsers such as Internet Explorer and Netscape Navigator. and produce C# or Visual Basic source code . Server Application Development Server-side applications in the managed world are implemented through runtime hosts. making coding simpler and more consistent. your code no longer needs to share the same file with your HTTP text (although it can continue to do so if you prefer). ASP. For example. This means that binary or natively executing code can access some of the resources on the user's system (such as GUI elements and limited file access) without being able to access or compromise other resources.NET is the hosting environment that enables developers to use the . and both have a collection of supporting classes in the . This model provides you with all the features of the common language runtime and class library while gaining the performance and scalability of the host server.NET Framework are designed to be used for GUI development. You can easily create command windows. more functional.NET Framework. and easier to develop than unmanaged ASP pages because they interact with the runtime like any managed application.NET and Web Forms offer. Unmanaged applications host the common language runtime. like any other managed application. many applications that once needed to be installed on a user's system can now be deployed through the Web. Servers such as IIS and SQL Server can perform standard operations while your application logic executes through the managed code. the . ASP.NET Framework is built on these standards to promote interoperability with non-Microsoft solutions. In contrast. such as traditional client applications. XML Web services. which allows your custom managed code to control the behavior of the server.NET Framework also provides a collection of classes and tools to aid in development and consumption of XML Web services applications. However. For example. In addition. Server-side managed code ASP. Because of code access security.NET is more than just a runtime host.NET Framework SDK can query an XML Web service published on the Web. For example.NET as the publishing mechanism for applications. Web-based applications.NET Framework automatically recreates the forms. and WSDL ( the Web Services Description Language).NET Framework to target Web-based applications. and other screen elements with the flexibility necessary to accommodate shifting business needs. As a result.NET Framework provides simple properties to adjust visual attributes associated with forms. the Web Services Description Language tool included with the . If you have used earlier versions of ASP technology. server-side application components similar to common Web sites. Your applications can implement the features of a local application while being deployed like a Web page. This is one of many ways in which the . it is a complete architecture for developing Web sites and Internet-distributed objects using managed code. or even other XML Web services. In some cases the underlying operating system does not support changing these attributes directly. unlike Web-based applications. you will immediately notice the improvements that ASP. toolbars. XML Web services technology is rapidly moving application development and deployment into the highly distributed environment of the Internet.

See Also Other Resources Core Development Technologies Advanced Development Technologies QuickStarts Samples Tags : Add a tag Community Content Add new content Annotations | Edit false © 2009 Microsoft Corporation. without concerning yourself with the communications infrastructure required by distributed software development. Terms of Use | Trademarks | Privacy Statement . Using those classes enables you to focus on the logic of your service. and XML. The source code can create classes derived from classes in the class library that handle all the underlying communication using SOAP and XML parsing. All rights reserved. Finally. your XML Web service will run with the speed of native machine language using the scalable communication of IIS. Although you can use the class library to consume XML Web services directly. If you develop and publish your own XML Web service. the . WSDL.NET Framework provides a set of classes that conform to all the underlying communication standards. such as SOAP. like Web Forms pages in the managed environment. the Web Services Description Language tool and the other tools contained in the SDK facilitate your development efforts with the .that your application can use to become a client of the XML Web service.NET Framework.