Xem mẫu

.NET Framework Essentials, 2nd Edition Thuan L. Thai Hoang Lam Publisher: O`Reilly Second Edition February 2002 ISBN: 0-596-00302-1, 320 pages .NET Framework Essentials, 2nd Edition is a concise and technical overview of the Microsoft .NET Framework. Covered here are all of the most important topics—from the underlying Common Language Runtime (CLR) to its specialized packages for ASP.NET, Web Forms, Windows Forms, XML and data access (ADO.NET). The authors survey each of the major .NET languages, including Visual Basic .NET, C# and Managed C++. Table of Contents Preface ..................................................... 1 Audience ................................................... 1 About This Book .............................................. 1 Assumptions This Book Makes .................................... 2 Conventions Used in This Book .................................... 3 How to Contact Us ............................................. 3 Acknowledgments ............................................. 4 1. .NET Overview .............................................. 5 1.1 Microsoft .NET ............................................ 5 1.2 The .NET Platform .......................................... 6 1.3 .NET Framework Design Goals .................................. 7 1.4 .NET Framework ........................................... 11 2. The Common Language Runtime ................................. 14 2.1 CLR Environment .......................................... 14 2.2 CLR Executables ........................................... 14 2.3 Metadata ................................................. 19 2.4 Assemblies and Manifests ..................................... 25 2.5 Intermediate Language (IL) .................................... 30 2.6 The CTS and CLS .......................................... 32 2.7 CLR Execution ............................................ 37 2.8 Summary ................................................ 41 3. .NET Programming ........................................... 42 3.1 Common Programming Model .................................. 42 3.2 Core Features and Languages ................................... 44 3.3 Language Integration ......................................... 56 3.4 Summary ................................................ 60 4. Working with .NET Components ................................. 62 4.1 Deployment Options ......................................... 62 4.2 Distributed Components ...................................... 71 4.3 COM+ Services in .NET ...................................... 74 4.4 Message Queuing ........................................... 85 4.5 Summary ................................................ 88 5. Data and XML .............................................. 89 5.1 ADO.NET Architecture ....................................... 89 5.2 ADO.NET Benefits .......................................... 90 5.3 Content Components ......................................... 93 5.4 Managed Providers .......................................... 105 5.5 DataSets and XML .......................................... 115 5.6 Summary ................................................ 125 6. Web Services ............................................... 126 6.1 Web Services in Practice ...................................... 126 6.2 Web Services Framework ...................................... 127 6.3 Web Services Provider ....................................... 137 6.4 Web Services Consumers ...................................... 142 6.5 Web Services and Security ..................................... 159 6.6 Summary ................................................ 160 7. Web Forms ................................................. 162 7.1 ASP .................................................... 162 7.2 ASP.NET ................................................ 163 7.3 The System.Web.UI Namespace ................................. 163 7.4 Web Form Syntax ........................................... 171 7.5 ASP.NET Application Development .............................. 177 7.6 ASP.NET and Web Services .................................... 190 7.7 Data Binding and the Use of Templates ............................ 193 7.8 State Management and Scalability ................................ 198 7.9 Summary ................................................ 203 8. Windows Forms ............................................. 204 8.1 Introducing Windows Forms .................................... 204 8.2 The System.Windows.Forms Namespace ........................... 205 8.3 Windows Forms Development .................................. 210 8.4 Windows Forms and Web Services ............................... 232 8.5 Conclusion ............................................... 232 A. .NET Languages ............................................. 234 A.1 Microsoft-Supported Languages for .NET .......................... 234 A.2 Third-Party Languages for .NET ................................. 234 B. Common Acronyms .......................................... 236 C. Common Data Types ......................................... 239 C.1 Usage .................................................. 240 D. Common Utilities ............................................ 245 D.1 Assembly Generation Utility (al.exe) .............................. 245 D.2 Assembly Registration Utility (gacutil.exe) .......................... 246 D.3 MSIL Assembler (ilasm.exe) ................................... 246 D.4 MSIL Disassembler (ildasm.exe) ................................ 247 D.5 C++ Compiler (cl.exe) ....................................... 247 D.6 C# Compiler (csc.exe) ....................................... 247 D.7 Visual Basic Compiler (vbc.exe) ................................. 248 D.8 PE File Format Viewer (dumpbin.exe) ............................. 248 D.9 Type Library Exporter (tlbexp.exe) ............................... 249 D.10 Type Library Importer (tlbimp.exe) .............................. 249 D.11 XML Schema Definition Tool (xsd.exe) ........................... 250 D.12 Shared Name Utility (sn.exe) .................................. 251 D.13 Web Service Utility (wsdl.exe) ................................. 251 Colophon .................................................... 253 .NET Framework Essentials, 2nd Edition 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 the latest release of Microsoft Visual Studio .NET and the .NET Framework 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. To stay up-to-date, regularly check http://msdn.microsoft.com/net, http://www.gotdotnet.com/, and this book`s O`Reilly page, http://www.oreilly.com/catalog/dotnetfrmess2/. 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 of the CLR, as well as other features. 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 1 ... - tailieumienphi.vn
nguon tai.lieu . vn