Top Banner
1 Introduction to .NET Framework
20

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

Dec 26, 2015

Download

Documents

Norman Gordon
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1 Introduction to.NET Framework. 2.NETFramework Internet COM+ Orchestration Orchestration Windows.NET Enterprise ServersBuildingBlockServices Visual Studio.NET.

1

Introduction to.NET Framework

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

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?

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

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

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

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

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

5

Intermediate Language (IL)

SourceSourceCodeCode

MachineMachineLanguageLanguage

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

Productlib.dllProductlib.dll

MetadataMetadata

Application1.exeApplication1.exe

MSILMSIL

MetadataMetadata

Compiler CLR

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

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

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

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

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

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

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

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

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

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

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

11

Project Template

Windows Application

Class Library

Windows Control Library

ASP .NET Web Application / Service / Control Library

Console Application

Windows Service

Others

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

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)

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

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

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

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

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

15

Using Properties Window

Displays object properties

Display modes

Alphabetic

Categorize

Special Properties

"+" on the left bar

Dynamic Properties

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

16

Using ToolBox

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

Using Drag and Drop to parse any controls to application.

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

17

Using Server Explorer

Managing Data Connections

Viewing and Managing Servers

Using Drag-and-Drop Techniques

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

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

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

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

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

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