20
1 Introduction to .NET Framework

1 Introduction to.NET Framework. 2.NETFramework Internet COM+ Orchestration Orchestration Windows.NET Enterprise ServersBuildingBlockServices Visual Studio.NET

Embed Size (px)

Citation preview

1

Introduction to.NET Framework

2

.NET.NETFramework Framework

.NET.NETFramework Framework

InternetInternetInternetInternet

COM+COM+COM+COM+

OrchestrationOrchestration OrchestrationOrchestration

Windows Windows

.NET Enterprise

Servers

.NET Enterprise

Servers

BuildingBuildingBlockBlock

ServicesServices

BuildingBuildingBlockBlock

ServicesServices

Visual Studio .NET Visual Studio .NETInternetInternet

What Is the Microsoft .NET Platform?

3

.NET Enterprise Servers

Microsoft SQL Server™ 2000

Microsoft BizTalk™ Server 2000

Microsoft Host Integration Server 2000

Microsoft Exchange 2000 Enterprise Server

Microsoft Application Center 2000

Microsoft Internet Security and Acceleration Server 2000

Microsoft Commerce Server 2000

4

The .NET Framework Components

Win32Win32

MessageMessageQueuingQueuing

COM+COM+(Transactions, Partitions, (Transactions, Partitions,

Object Pooling)Object Pooling)IISIIS WMIWMI

Common Language RuntimeCommon Language Runtime

.NET Framework Class Library.NET Framework Class Library

ADO.NET and XMLADO.NET and XML

User InterfaceUser Interface User InterfaceUser Interface XML Web ServicesXML Web Services

VisualBasic C++ C#

ASP.NETASP.NET

Perl Python …

Windows FormsWindows Forms

5

Intermediate Language (IL)

SourceSourceCodeCode

MachineMachineLanguageLanguage

C:\...\Application1C:\...\Application1

Productlib.dllProductlib.dll

MetadataMetadata

Application1.exeApplication1.exe

MSILMSIL

MetadataMetadata

Compiler CLR

6

Common Language Runtime (CLR)

Base Class Library SupportBase Class Library Support

Thread SupportThread Support COM MarshalerCOM Marshaler

Type CheckerType Checker Exception ManagerException Manager

MSIL to NativeMSIL to NativeCompilersCompilers

CodeCodeManagerManager

GarbageGarbageCollectionCollection

Security EngineSecurity Engine Debug EngineDebug Engine

Class LoaderClass Loader

7

.NET Framework Class Library

System.GlobalizationSystem.Globalization

System.DiagnosticsSystem.Diagnostics

System.ConfigurationSystem.Configuration

System.CollectionsSystem.CollectionsSystem.IOSystem.IO

System.ReflectionSystem.Reflection

System.NetSystem.Net

SystemSystem

System.ThreadingSystem.Threading

System.TextSystem.Text

System.SecuritySystem.Security System.Runtime.System.Runtime.InteropServicesInteropServices

System.WebSystem.Web System.Windows.FormsSystem.Windows.FormsSystem.DataSystem.Data

8

Languages in the .NET Framework

Visual Basic .NET

New version of Visual Basic with substantial language innovations

C# – designed for .NET

New component-oriented language

Managed Extensions to Visual C++

Provides more power and control

J# .NET

Takes full advantage of the .NET Framework

Third-party languages

9

What Are the Visual Basic .NET Enhancements?

Major language enhancements

Enhanced object-oriented support

Structured exception handling

Full access to the .NET Framework

New threading options

Garbage collection

Enhanced Web development

Create Web Forms as easily as Windows Forms

Create Web Services quickly

10

Microsoft Visual Studio .NET

There is one IDE for all .NET projects

Solutions can contain multiple programming languages

Example: Visual Basic .NET and C# in the same solution

The IDE is customizable through “My Profile”

The IDE has a built-in Internet browser

IDE = Integrated Development Environment

11

Project Template

Windows Application

Class Library

Windows Control Library

ASP .NET Web Application / Service / Control Library

Console Application

Windows Service

Others

12

Project Structures

Solution files (.sln, .suo)

Project files (.vbproj)

Local project items

Classes, forms, modules, etc. (.vb)

Web project items

XML Web services (.asmx)

Web forms (.aspx)

Global application classes (.asax)

13

Assemblies

An assembly is an .exe or .dll file with other supporting files that make up a Visual Studio .NET application

Assemblies are created automatically when you compile source files

Click Build on the Build menu

Use the command-line command vbc.exe

14

Using Solution Explorer

Displays project hierarchy

Project references

Forms, classes, modules

Folders with subitems

“Show All Files” mode

Manipulating projects

Drag-and-drop editing

Context menus

15

Using Properties Window

Displays object properties

Display modes

Alphabetic

Categorize

Special Properties

"+" on the left bar

Dynamic Properties

16

Using ToolBox

Display tools for develop application. Controls are grouped in tabs.

Using Drag and Drop to parse any controls to application.

17

Using Server Explorer

Managing Data Connections

Viewing and Managing Servers

Using Drag-and-Drop Techniques

18

Using the Object Browser

Examine objects and their members

Access lower-level items

Shows inheritance and interfaces

Examine how the .NET Framework class libraries use Inheritance

Class Namespace

Method

Library

Inheritance

19

Using the Task List

Similar to the Tasks feature in Microsoft Outlook

Stored with the solution in the .suo file

Adding to the Task List

You can add tasks manually by typing in appropriate field Visual Basic .NET adds build errors, upgrade comments, etc. You can use token strings to add comments in code

20

Using Dynamic Help

Automatically displays relevant Help topics based on focus and cursor placement

Use the Options dialog box to configure the Dynamic Help window