Module1: Overview of the .NET Platform
Download
Report
Transcript Module1: Overview of the .NET Platform
Introduction to
.NET Framework
1
What Is the Microsoft .NET Platform?
Visual Studio .NET
Internet
Orchestration
.NET
Framework
Internet
COM+
.NET
Enterprise
Servers
Building
Block
Services
Windows
2
.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
3
The .NET Framework Components
Visual
Basic
C++
C#
Perl
Python
User Interface
User Interface
…
XML Web Services
ASP.NET
Windows Forms
ADO.NET and XML
.NET Framework Class Library
Common Language Runtime
Message
Queuing
COM+
(Transactions, Partitions,
Object Pooling)
IIS
WMI
Win32
4
Intermediate Language (IL)
C:\...\Application1
Metadata
Source
Code
Compiler
MSIL
Application1.exe
CLR
Machine
Language
Metadata
Productlib.dll
5
Common Language Runtime (CLR)
Base Class Library Support
Thread Support
COM Marshaler
Type Checker
Exception Manager
Security Engine
Debug Engine
MSIL to Native
Compilers
Code
Manager
Garbage
Collection
Class Loader
6
.NET Framework Class Library
System
System.Security
System.Runtime.
InteropServices
System.Net
System.Text
System.Globalization
System.Reflection
System.Threading
System.Configuration
System.IO
System.Diagnostics
System.Collections
System.Data
System.Web
System.Windows.Forms
7
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
8
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
9
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
10
Project Template
Windows Application
Class Library
Windows Control Library
ASP .NET Web Application / Service / Control Library
Console Application
Windows Service
Others
11
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)
12
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
13
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
14
Using Properties Window
Displays object properties
Display modes
Alphabetic
Categorize
Special Properties
"+" on the left bar
Dynamic Properties
15
Using ToolBox
Display tools for develop application.
Controls are grouped in tabs.
Using Drag and Drop to parse any controls
to application.
16
Using Server Explorer
Managing Data
Connections
Viewing and Managing
Servers
Using Drag-and-Drop
Techniques
17
Using the Object Browser
Library
Examine objects and
their members
Access lower-level items
Shows inheritance
and interfaces
Examine how the .NET
Framework class
libraries use Inheritance
Method
Class
Inheritance
Namespace
18
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
19
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
20