Presentation is loading. Please wait.

Presentation is loading. Please wait.

Developing with the.NET Framework Rob Howard Program Manager.NET Framework Team Microsoft Corporation.

Similar presentations


Presentation on theme: "Developing with the.NET Framework Rob Howard Program Manager.NET Framework Team Microsoft Corporation."— Presentation transcript:

1

2 Developing with the.NET Framework Rob Howard Program Manager.NET Framework Team Microsoft Corporation

3 Agenda  Overview and.NET Evolution  Design points and Architecture  Common Language Runtime  Class Libraries  Windows Forms  ASP.NET

4 Overview .NET Framework  Simple, secure, modern, multi-language  Great XML and Web Services support  Comprehensive class libraries  Consistent across languages  Object oriented - inheritance, etc.  ASP.NET is a incredible web platform  Controls, web services  Fast, scalable, available, reliable

5 The.NET Evolution

6 Before COM, applications were completely separate entities with little or no integration Applicatio n Code and data structures

7 The.NET Evolution COM provides a way for components to integrate. However, each component must provide the “plumbing” and objects cannot directly interact.

8 The.NET Evolution With the.NET Framework common language runtime, components are built on a common substrate. No “plumbing” is needed and objects can interact directly

9 Design Points  Simplify development  More power, less plumbing  Unify programming models  Across languages and types  Web standards and best practices  Rich XML, standard protocols, stateless  Easier to deploy, run, & maintain  Versioning and availability

10 Architecture WindowsCOM+ Services Common Language Runtime Base Class Library ADO.NET and XML ASP.NETWindows Forms Common Language Specification VBC++C#JScript… Visual Studio.NET

11 Multi-Language  Over 20 languages supported  VB, C++, C#, JScript, Perl, COBOL  Advanced multi-language features  Cross language inheritance, exceptions  Highly leveraged tools  Debuggers, etc work with all languages

12 MSIL Compilation & Execution Source Code Language Compiler Compilation Code MetadataNativeCode Before installation or the first time each method is called Execution JIT Compiler

13 Common Language Runtime  Manages running code  Type safety and code access security  Garbage collection and error handling  Provides common type system  Value types (integer, float, etc)  Objects, Interfaces  Provides access to system resources  Native APIs through P/Invoke  COM integration

14 Common Language Runtime Class Loader IL to Native Compilers Code Manager Garbage Collector Security EngineDebug EngineType CheckerException ManagerThread SupportCOM Marshaler Base Class Library Support

15 Developing Components

16 Simplifies Development  Eliminates COM plumbing  No more…  Registration  GUIDs .IDL files  HRESULTs  IUnknown  AddRef/Release  CoCreateInstance =>self describing components =>hierarchical namespaces =>source code to metadata =>structured exceptions =>root object class =>garbage collector =>”new” operator

17 Simplified Deployment  No registration required  Code is completely self-describing  Simply copy components with app  Zero-impact installation  Installing one app will not affect another  Global and non-global components  Side-by-side execution  Multiple component versions co-exist  Multiple app versions co-exist

18 Seamless Integration  Use.NET classes as COM objects  No extra development work required  COM objects can be imported  No ref counting or COM API needed .NET classes utilize COM+ services  Transactions, Object pooling, etc…

19 Architecture WindowsCOM+ Services Common Language Runtime Base Class Library ADO.NET and XML ASP.NETWindows Forms Common Language Specification VBC++C#JScript… Visual Studio.NET

20 A Unified Model Windows API.NET Framework Consistent API availability regardless of language and programming model ASP Stateless, Code embedded in HTML pages MFC/ATL Subclassing, Power, Expressiveness VB Forms RAD, Composition, Delegation

21 Base Class Library ADO.NETXML ASP.NET Windows.NET Framework Namespaces

22 System System.DataSystem.Xml System.Web Globalization Diagnostics Configuration Collections Resources Reflection Net IO Threading Text ServiceProcess Security OleDb Common SqlTypes SqlClient XPath Schema Runtime InteropServices Remoting Serialization ConfigurationSessionState CachingSecurity Services Description Discovery Protocols UI HtmlControls WebControls System.Drawing Imaging Drawing2D Text Printing System.Windows.Forms DesignComponentModel XPath Serialization

23 Data and XML  Managed Providers  Stream-level access to data sources  Fastest way to get data out of SQL  ADO.NET  DataSet – In-memory buffer  DataReader – Synonymous with RecordSet  System.Xml - Great Standards support  100% OASIS compliance  XSLT 1.0, XPath 1.0, XSD 1.0, DOM2

24 Windows Forms  Rich Windows applications  Combines best of VB Forms, MFC and WFC  Easy access to Win32 ® API  Provides advanced features  Visual forms inheritance, automatic layout  Advanced graphics support – GDI+  Secure  Code access security prevents harm  No Internet Explorer security dialogs!

25 How Much Simpler? HWND hwndMain = CreateWindowEx( 0, "MainWClass", "Main Window", 0, "MainWClass", "Main Window", WS_OVERLAPPEDWINDOW | WS_HSCROLL | WS_VSCROLL, WS_OVERLAPPEDWINDOW | WS_HSCROLL | WS_VSCROLL, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, (HWND)NULL, (HMENU)NULL, hInstance, NULL); (HWND)NULL, (HMENU)NULL, hInstance, NULL); ShowWindow(hwndMain, SW_SHOWDEFAULT); UpdateWindow(hwndMain); Form form = new Form(); form.Text = "Main Window"; form.Show(); Windows API.NET Framework

26 ASP.NET  ASP.NET is a revolutionary advance of ASP  Existing ASP skills still work fine  …but lots more features to leverage  Core themes that ASP.NET has focused on:  Making it easier to build, deploy, and operate  Providing great performance and scalability  Supported platforms  Windows 2000 and Windows XP  Open hosting APIs

27 ASP.NET Development  Server controls encapsulate behavior  Provide VB-Like Model  Support compiled languages  VB, C#, JScript, COBOL, etc.  Enable separation of code from content  Work independently  Support multiple clients automatically  Mobile controls for small devices

28 ASP.NET Web Services  Simple Programming Model  Author.asmx files  SOAP messages mapped to methods  HTTP or XML knowledge not required  Multiple Message Formats  SOAP messaging support  HTTP Get/Post  Extensible model for innovation

29 ASP.NET Deployment  “XCOPY” deployment  No registration required  No stopping the server  Supports all web resources  Compiled components (DLL)  Configuration files  Update running applications  Application gracefully updated  No stop and restart

30 Scalable and Available  Special support for multi-proc scaling  Scalable GC, multi-process applications  Web farm scalable session state  ASP.NET State Service, SQL Server  Detects and recovers from failures  Crashes, hangs, memory leaks, etc…

31 ASP.NET

32 Summary .NET Framework  Simple, secure, modern, multi-language  Great XML and Web Services support  Comprehensive class libraries  Consistent across languages  Object oriented - inheritance, etc.  ASP.NET is a incredible web platform  Controls, web services  Fast, scalable, available, reliable

33 Resources  Community  ASP.NET Discussion lists  http://www.asp.net  Books  Professional ASP.NET  Web Services books due soon

34


Download ppt "Developing with the.NET Framework Rob Howard Program Manager.NET Framework Team Microsoft Corporation."

Similar presentations


Ads by Google