OReilly - .NET Framework Essentials.pdf

(1650 KB) Pobierz
Microsoft Word - NET Framework Essentials -- oreilly.doc
release TeamOR
[x] .NET
357038092.001.png 357038092.002.png
...............................................................................
Audience
2
.........................................................................
About This Book
2
.............................................................
Assumptions This Book Makes
2
.......................................
Conventions Used in This Book
3
......................................
4
How to Contact Us
..........................................................
4
Acknowledgments
...........................................................
5
Chapter 1. .NET Overview
................................................
5
................................................................
The .NET Platform
6
..........................................................
.NET Framework Design Goals
7
......................................
8
.NET Framework
.............................................................
11
Chapter 2. The Common Language Runtime
.................
13
CLR Environment
...........................................................
13
CLR Executables
............................................................
14
.........................................................................
Assemblies and Manifests
18
..............................................
Intermediate Language (IL)
24
............................................
29
The CTS and CLS
..........................................................
31
CLR Execution
................................................................
35
Summary
........................................................................
39
.........................................
Common Programming Model
39
........................................
Core Features and Languages
39
.......................................
41
Language Integration
......................................................
53
Summary
........................................................................
57
Chapter 4. Working with .NET Components
...................
57
.......................................................
Distributed Components
57
.................................................
65
COM+ Services in .NET
..................................................
68
Message Queuing
...........................................................
79
Summary
........................................................................
82
Chapter 5. Data and XML
..................................................
82
ADO.NET Architecture
....................................................
82
..........................................................
Content Components
83
......................................................
85
Managed Providers
.........................................................
96
DataSet and XML
...........................................................
105
Summary
........................................................................
113
Preface
Microsoft .NET
Metadata
Chapter 3. .NET Programming
Deployment Options
ADO.NET Benefits
..................................................
Web Services in Practice
114
................................................
Web Services Framework
114
...............................................
115
...................................................
Web Services Consumers
125
..............................................
Web Services and Security
129
.............................................
144
Summary
........................................................................
146
Chapter 7. Web Forms
......................................................
146
ASP
.................................................................................
146
.................................................................................
The System.Web.UI Namespace
147
...................................
148
...........................................................
ASP.NET Application Development
155
................................
161
..........................................
Data Binding and the Use of Templates
173
.........................
175
State Management and Scalability
.................................
180
Summary
........................................................................
183
..............................................
Introducing Windows Forms
183
...........................................
The System.Windows.Forms Namespace
183
......................
184
........................................
Windows Forms and Web Services
189
................................
206
Conclusion
......................................................................
207
..........................................
A.1 Microsoft-Supported Languages for .NET
207
................
207
A.2 Third-Party Languages for .NET
..............................
207
Appendix B. Common Acronyms
....................................
208
Appendix C. Common Datatypes
....................................
211
C.1 Usage
.......................................................................
212
........................................
D.1 Assembly Generation Utility (al.exe)
216
........................
D.2 Assembly Registration Utility (gac.exe)
216
....................
217
....................................
D.4 MSIL Disassembler (ildasm.exe)
217
.............................
217
D.5 C++ Compiler (cl.exe)
..............................................
218
..............................................
D.7 Visual Basic Compiler (vbc.exe)
218
..............................
D.8 PE File Format Viewer (dumpbin.exe)
219
.....................
219
Chapter 6. Web Services
Web Services Provider
ASP
Web Form Syntax
ASP.NET and Web Services
Chapter 8. Windows Forms
Windows Forms Development
Appendix A. .NET Languages
Appendix D. Common Utilities
D.3 MSIL Assembler (ilasm.exe)
D.6 C# Compiler (csc.exe)
...........................
D.10 Type Library Importer (tlbimp.exe)
220
.........................
D.11 XML Schema Definition Tool (xsd.exe)
220
..................
220
.................................
D.13 Web Service Utility (wsdl.exe)
222
................................
222
Colophon
...........................................................................
222
D.9 Type Library Exporter (tlbexp.exe)
D.12 Shared Name Utility (sn.exe)
.NET Framework Essentials
Preface
A condensed introduction to the Microsoft .NET Framework, this book aims to help
programmers make the transition from traditional Windows programming into the world of .NET
programming. The Microsoft .NET Framework includes the Common Language Runtime (CLR)
and a set of base classes that radically simplify the development of large-scale applications and
services. This book examines the CLR in detail, so that you can put its new features to good use.
The book also illustrates how language integration really works and guides you through
component and enterprise development using the .NET Framework. In addition, it introduces
you to four key .NET technologies: Data (ADO.NET) and XML, Web Services, Web Forms
(ASP.NET), and Windows Forms.
We used Beta 2 of the .NET SDK to prepare this manuscript and to develop all the examples and
figures in this book. While we have done our best to ensure that the technical content of this
book is up-to-date, it is possible that some items have changed slightly from the time of writing.
By the time this book gets to you, there may be a newer release. Also, check
http://msdn.microsoft.com/net , http://www.gotdotnet.com , and the O’Reilly web page for this
book, http://www.oreilly.com/catalog/dotnetfrmess/ , regularly.
Audience
While this book is for any person interested in learning about the Microsoft .NET Framework, it
targets seasoned developers with experience in building Windows applications with Visual
Studio 6 and the Visual Basic and Visual C++ languages. Java™ and C/C++ developers will also
be well prepared for the material presented here. To gain the most from this book, you should
have experience in object-oriented, component, enterprise, and web application development.
COM programming experience is a plus.
About This Book
Based on a short course that Thuan has delivered to numerous companies since August 2000,
this book is designed so that each chapter builds on knowledge from the previous one for those
unfamiliar with each technology. To give you a heads-up, here are brief summaries for the
chapters and appendixes covered in this book.
Chapter 1 takes a brief look at Microsoft .NET and the Microsoft .NET Platform. It then
describes the .NET Framework design goals and introduces you to the components of the .NET
Framework.
Chapter 2 lifts the hood and peers into the CLR. This chapter surveys the rich runtime, as well as
other features, of the CLR.
Chapter 3 introduces you to .NET programming. You’ll examine a simple program that uses
object-oriented and component-based concepts in four different languages: Managed C++,
VB.NET, C#, and IL. You’ll also experience the benefits of language integration.
Chapter 4 demonstrates the simplicity of component and enterprise development in .NET.
Besides seeing component-deployment features, you’ll also examine complete programs that
page 2
Zgłoś jeśli naruszono regulamin