-
MSDN Traning - VB.NET (VBL).pdf下载
资源介绍
Programming with Microsoft® Visual Basic® .NET (Prerelease)
iii
Contents
Introduction
Course Materials.........................................................................................2
Prerequisites...............................................................................................3
Course Outline............................................................................................4
Microsoft Certified Professional Program.......................................................6
Facilities.....................................................................................................8
Module 1: Overview of the Microsoft .NET Platform
Overview....................................................................................................1
What Is the Microsoft .NET Platform?...........................................................2
What Is the .NET Framework?......................................................................5
What Are the .NET Framework Components?.................................................9
What Are the Visual Basic .NET Enhancements?..........................................17
Review.....................................................................................................19
Module 2: Development Environment Features
Overview....................................................................................................1
Describing the Integrated Development Environment.......................................2
Creating Visual Basic .NET Projects..............................................................3
Demonstration: Creating a Visual Basic .NET Project....................................16
Using Development Environment Features...................................................17
Demonstration: Using the Visual Studio .NET IDE........................................29
Debugging Applications.............................................................................30
Demonstration: Debugging a Project............................................................37
Compiling in Visual Basic .NET..................................................................38
Lab 2.1: Exploring the Development Environment.........................................42
Review.....................................................................................................47
Module 3: Language and Syntax Enhancements
Overview....................................................................................................1
Data Types.................................................................................................2
Using Variables...........................................................................................9
Demonstration: Using Variables and Data Structures......................................20
Functions, Subroutines, and Properties.........................................................21
Lab 3.1: Working with Variables and Procedures...........................................29
Exception Handling...................................................................................36
Demonstration: Structured Exception Handling.............................................48
Lab 3.2: Implementing Structured Exception Handling...................................49
Review.....................................................................................................52
iv
Programming with Microsoft® Visual Basic® .NET (Prerelease)
Module 4: Object-Oriented Design for Visual Basic .NET
Overview....................................................................................................1
Designing Classes........................................................................................2
Practice: Deriving Classes from Use Cases...................................................10
Object-Oriented Programming Concepts.......................................................11
Advanced Object-Oriented Programming Concepts........................................20
Using Microsoft Visio................................................................................25
Lab 4.1: Creating Class Diagrams from Use Cases.........................................33
Review.....................................................................................................41
Module 5: Object-Oriented Programming in Visual Basic .NET
Overview....................................................................................................1
Defining Classes..........................................................................................2
Creating and Destroying Objects.................................................................16
Demonstration: Creating Classes.................................................................23
Lab 5.1: Creating the Customer Class...........................................................24
Inheritance................................................................................................31
Demonstration: Inheritance.........................................................................43
Interfaces..................................................................................................44
Demonstration: Interfaces and Polymorphism...............................................50
Working with Classes................................................................................51
Lab 5.2: Inheriting the Package Class...........................................................65
Review.....................................................................................................74
Module 6: Using Windows Forms
Overview....................................................................................................1
Why Use Windows Forms?...........................................................................2
Structure of Windows Forms.........................................................................4
Using Windows Forms...............................................................................12
Demonstration: Manipulating Windows Forms..............................................27
Using Controls..........................................................................................28
Demonstration: Implementing Drag-and-Drop Functionality...........................42
Windows Forms Inheritance........................................................................43
Demonstration: Using Windows Forms Inheritance........................................48
Lab 6.1: Creating the Customer Form...........................................................49
Review.....................................................................................................57
Module 7: Building Web Applications
Overview....................................................................................................1
Introduction to ASP .NET.............................................................................2
Creating Web Form Applications.................................................................16
Demonstration: Creating Web Forms...........................................................30
Lab 7.1: Creating the Customer Logon Web Forms........................................31
Building Web Services...............................................................................42
Demonstration: Creating a Web Service.......................................................50
Using Web Services...................................................................................51
Demonstration: Using a Web Service...........................................................57
Multimedia: How Web Services Work.........................................................58
Lab 7.2: Creating and Using the CustomerService Web Service.......................60
Review.....................................................................................................70
Programming with Microsoft® Visual Basic® .NET (Prerelease)
v
Module 8: Using ADO .NET
Overview....................................................................................................1
ADO .NET Overview...................................................................................2
.NET Data Providers....................................................................................5
Demonstration: Retrieving Data Using ADO .NET........................................18
The DataSet Object....................................................................................19
Practice: Using DataSets.............................................................................35
Data Designers and Data Binding................................................................37
XML Integration.......................................................................................45
Demonstration: Using XML Schema............................................................55
Lab 8.1: Creating Applications That Use ADO .NET.....................................56
Review.....................................................................................................69
Module 9: Developing Components in Visual Basic .NET
Overview....................................................................................................1
Components Overview.................................................................................2
Creating Serviced Components....................................................................11
Demonstration: Creating a Serviced Component............................................27
Lab 9.1: Creating a Serviced Component......................................................28
Creating Component Classes.......................................................................35
Demonstration: Creating a Stopwatch Component.........................................40
Creating Windows Forms Controls..............................................................41
Demonstration: Creating an Enhanced TextBox.............................................48
Creating Web Forms User Controls..............................................................49
Demonstration: Creating a Simple Web Forms User Control...........................53
Lab 9.2: Creating a Web Forms User Control................................................54
Threading.................................................................................................60
Demonstration: Using the SyncLock Statement.............................................73
Review.....................................................................................................74
Module 10: Deploying Applications
Overview....................................................................................................1
Describing Assemblies.................................................................................2
Choosing a Deployment Strategy.................................................................11
Deploying Applications..............................................................................18
Lab 10.1: Packaging a Component Assembly................................................20
Demonstration: Deploying a Web-Based Application.....................................28
Lab 10.2: Deploying a Windows-Based Application......................................29
Review.....................................................................................................33
Module 11: Upgrading to Visual Basic .NET
Overview....................................................................................................1
Deciding Whether to Upgrade.......................................................................2
Options for Upgrading.................................................................................7
Recommendations.....................................................................................11
Performing the Upgrade.............................................................................13
Demonstration: Using the Upgrade Wizard...................................................22
Review.....................................................................................................23