Sie sind auf Seite 1von 4

Page 1

Introduction to .NET

‰ A new platform for building Internet applications and Web


services
‰ Contains runtime, messaging, services, data access,
interoperability, HTTP services, ASP+, and more
Introduction to .NET
‰ Supports multi-language development
‰ Has a rich set of internet-supporting technologies
daniel.flemstrom@mdh.se ‰ A common class library with a standard set of classes which
all inherits from a base class called Object
‰ The .Net Frameworks Object Model is called VOS
Virtual Object System

Page 1, November 9, 2004 Page 2, November 9, 2004

What Does .NET Give You? The .NET framework


‰ Data access VB C++ C# JScript …
‰ Functionality of the Win 32 API that is accessible through a
simple object model Common Language Specification
‰ The VB language has been upgraded

Visual Studio.NET
‰ C#
ASP.NET Windows Forms
‰ Memory management
ADO.NET and XML
‰ ASP.NET
‰ Programming languages have been moved closer together Base Class Library
‰ Assembly
Common Language Runtime

Windows COM+ Services


Page 3, November 9, 2004 Page 4, November 9, 2004

Common Type System and CLS The .NET framework


‰ CLS(Common Language Specification) Compliant Attribute
VB C++ C# JScript …
z A subset of Common Type System
z Assembly can be tagged with Common Language Specification
[assembly: System.CLSCompliant(true)]
Compiler issues a warning if non compliant types are used.
Visual Studio.NET

z Solves the cross language access problem in COM


ASP.NET Windows Forms
(e.g C++ has types that is not supported by VB)
z (Private) types, methods may still be marked with ADO.NET and XML
[CLSCompliant(false)]
Common Type Base Class Library
System(CTS)

C+
Common Language Runtime
+
VB
CLS
Windows COM+ Services
Page 5, November 9, 2004 Page 6, November 9, 2004

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority
is strictly forbidden. © 1999 ABB Automation Products AB
Page 2

Languages Supported by .NET The .NET framework


VB C++ C# JScript …
‰ C# ‰ APL
‰ C++ ‰ Cobol Common Language Specification

Visual Studio.NET
‰ VB ‰ Component Pascal
‰ JScript ‰ Eiffel ASP.NET Windows Forms
‰ Standard ML ‰ Haskell
‰ SmallTalk ‰ Mercury ADO.NET and XML
‰ Scheme ‰ Oberon
Base Class Library
‰ Python ‰ Perl
‰ ... ‰ ...
Common Language Runtime
Note that the languages typically have to be extended
to handle managed code, attributes etc
which makes them .NET Specific Windows COM+ Services
Page 7, November 9, 2004 Page 8, November 9, 2004

Common Language Runtime Common Language Runtime(simplified)


Base Class Library Support
.NET PE
Thread Support COM Marshaler File

Type Checker Exception Manager


Verifier Managed
Class Native Code

JIT
Security Engine Debug Engine Loader

IL to Native Code Garbage


Compilers Manager Collector
JIT Compilers
Class Loader
CLR’s Virtual Execution Engine

Page 9, November 9, 2004 Page 10, November 9, 2004

The .NET framework Base Class Library Namespaces


VB C++ C# JScript … System

Common Language Specification Collections Security


Configuration ServiceProcess
Visual Studio.NET

ASP.NET Windows Forms


Diagnostics Text
ADO.NET and XML
Globalization Threading
Base Class Library IO Runtime
Net InteropServices
Common Language Runtime
Reflection Remoting
Windows COM+ Services Serialization
Resources
Page 11, November 9, 2004 Page 12, November 9, 2004

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority
is strictly forbidden. © 1999 ABB Automation Products AB
Page 3

The .NET framework Database Support in .NET


‰ Create your database
VB C++ C# JScript …
‰ Use Visual Studio to create
Datalink and typed dataset out
[Customers]
Common Language Specification of your database.

Visual Studio.NET
‰ open OleDbConnection
ASP.NET Windows Forms CustomerSet
‰ OleDbDataAdapter for
SQL command
ADO.NET and XML ADO.NET
‰ Use the adapter to fill out
your custom dataset with
Base Class Library the requested information
‰ Modify your dataset CustomerInfo
Common Language Runtime DB
‰ Create update command
with the OleDbCommandBuilder
Windows COM+ Services ‰ Update the database with the adapter
(given your dataset)
Page 13, November 9, 2004 Page 14, November 9, 2004

XML Support The .NET framework


VB C++ C# JScript …
‰ XML Is used everywhere
Common Language Specification
‰ Store / Retrieve Datasets in XML

Visual Studio.NET
‰ XMLTextReader, XMLTextWriter
ASP.NET Windows Forms
‰ XMLDataDocument
z W3C Document Object Model (DOM) ADO.NET and XML
‰ XMLNode
‰ XPath, XslTransform Base Class Library
‰ XMLSerialization
‰...
Common Language Runtime

Windows COM+ Services


Page 15, November 9, 2004 Page 16, November 9, 2004

ASP.NET and Web Forms Windows Forms


Web Browser ‰ Components needed to create windows applications
IIS – Web Server
‰ WIN32 at last hidden with real OOP!
HTML Genreated HTML
‰ Visual Inheritance
Page
‰ Same controls used from all languages
Postback
‰ Consistent naming of properties, methods and behaviour!!!!
ASP.NET Page
‰ Forms + Listboxes, Buttons etc
HTML ‰ WIN32 specific
Component
Program Component
z Builds pretty much on intrinsic WIN32 functionality
z Makes it difficult to support.
SOAP Component
WebService DB

Component

Page 17, November 9, 2004 Page 18, November 9, 2004

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority
is strictly forbidden. © 1999 ABB Automation Products AB
Page 4

The .NET framework Evolution of COM


VB C++ C# JScript …

Common Language Specification COM


COM COM+
COM+

Visual Studio.NET
ASP.NET Windows Forms

ADO.NET and XML

Base Class Library MTS


MTS

Common Language Runtime

Windows COM+ Services


Page 19, November 9, 2004 Page 20, November 9, 2004

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties without express authority
is strictly forbidden. © 1999 ABB Automation Products AB

Das könnte Ihnen auch gefallen