1. Trang chủ
  2. » Công Nghệ Thông Tin

Sams microsoft visual c sharp 2005 unleashed may 2006 ISBN 0672327767

1,1K 172 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 1.112
Dung lượng 8,01 MB

Nội dung

Microsoft® Visual C# 2005 Unleashed By Kevin Hoffman Publisher: Sams Pub Date: May 09, 2006 Print ISBN-10: 0-672-32776-7 Print ISBN-13: 978-0-672-32776-6 Pages: 720 Table of Contents | Index Setting the standard for a premium C# reference, Microsoft Visual C# 2005 Unleashed provides practical examples for virtually every aspect of the C# programming language The book is structured for progressive learning, so it can be read cover-to-cover or used as a comprehensive reference guide You will be exposed to everything from low-level information on the Garbage Collector to advanced concepts, such as creating applications that use Enterprise Services, creating Web Services, and even advanced Windows GUI Chapters include: Expressions and Control Structures UI Controls Code Access Security Remoting Peer-to-Peer Applications Microsoft® Visual C# 2005 Unleashed By Kevin Hoffman Publisher: Sams Pub Date: May 09, 2006 Print ISBN-10: 0-672-32776-7 Print ISBN-13: 978-0-672-32776-6 Pages: 720 Table of Contents | Index Copyright About the Author We Want to Hear from You! Reader Services Introduction Part I: C# 2.0 Fundamentals Chapter 1 Introduction to C# 2.0 What Is the NET Framework? Working with Variables in C# 2.0 C# Basic Syntax What You Can Do with C# Summary Chapter 2 Expressions and Control Structures Branching and Conditional Logic Looping and Repetition Summary Chapter 3 Strings and Regular Expressions Working with Strings Working with Regular Expressions Summary Chapter 4 Arrays and Collections Working with Arrays Working with Collections Summary Chapter 5 Object-Oriented Programming in C# Object-Oriented Design Object-Oriented Programming Summary Chapter 6 Introduction to Generics Overview of Generics Building Generic Types Using Generic Collections Summary Part II: NET Framework 2.0 Fundamentals Chapter 7 I/O and Persistence Introduction to Streams Introduction to Basic File I/O Using Asynchronous File I/O Working with Isolated Storage Summary Chapter 8 Working with XML Reading and Writing XML Documents Querying XML with XPath Transforming Documents with XSLT Validating Documents with XSD Summary Chapter 9 Events and Delegates Introduction to Delegates Using Anonymous Methods Creating Multicast Delegates Introduction to Events Advanced Event-Based Programming Summary Chapter 10 Multithreaded Programming The Basics of Threaded Programming Writing Your First Multithreaded Application Dealing with Thread Synchronization and Contention Using the ThreadPool Class Summary Chapter 11 Reflection Fundamentals Introduction to Reflection Working with Method Information Working with Member Information Examining Events Creating and Examining Custom Code Attributes Summary Chapter 12 Assemblies and AppDomains Introduction to Assemblies Assemblies Under the Hood Building and Using Assemblies Storing and Retrieving Assembly Resources Localization and Satellite Assemblies Introduction to AppDomains Programming with AppDomains Summary Chapter 13 COM and Windows Interoperability Introduction to Interoperability in C# Using COM Objects from the NET Framework Using NET Classes from COM Accessing Code in Unmanaged DLLs Summary Chapter 14 Code Access Security Introduction to Code Access Security (CAS) Using and Administering Security Policy Using Imperative Security Using Declarative Security Summary Chapter 15 Cryptography and Data Protection Introduction to Cryptography Using Secret-Key Encryption Using Public-Key Encryption Working with Hashes and Digital Signatures Using the Data Protection API (DPAPI) Summary Chapter 16 Optimizing Your NET 2.0 Code Understanding Boxing and Unboxing Using Proper String Manipulation Techniques Efficient Loop Construction Speeding Up Application Start Times Code Profiling Using the Performance Wizard Summary Part III: Data Access with NET 2.0 Chapter 17 ADO.NET Fundamentals Introduction to ADO.NET Establishing a Connection Communicating with the Data Source Working with the Data Summary Chapter 18 Advanced ADO.NET Techniques Working with the New Improved DataTable Accessing Data Asynchronously Updating Data in Batches Using the New System.Transactions Namespace Summary Chapter 19 Working with ADO.NET Data Providers Introduction to ADO.NET Data Providers Using Provider Factories Working with Connection Strings Enumerating Data Sources Obtaining Additional Provider Information Creating a Custom ADO.NET Data Provider Summary Chapter 20 Strongly Typed DataSets Introduction to the Typed DataSet Connecting Typed DataSets to Live Data Annotating a Typed DataSet Extending a Typed DataSet Using Partial Classes Summary Chapter 21 Programming with SQL Server 2005 Introduction to the SQL Server 2005 CLR Host Building C# Stored Procedures Building C# User-Defined Functions Creating a C# User-Defined Type Working with the New Server-Side SQL Library Using MARS (Multiple Active RecordSets) Summary Part IV: Developing ASP.NET 2.0 Web Applications Chapter 22 Introduction to ASP.NET 2.0 and Web Forms Introduction to ASP.NET 2.0 Understanding the ASP.NET Page Life Cycle Overview of Controls Provided by ASP.NET Creating and Debugging ASP.NET Applications Handling Events and Postbacks Building Interactive Dynamic Pages Using Client Callbacks Summary Chapter 23 State Management in ASP.NET 2.0 Working with Application State Working with Session State Working with View State State Management in Web Farms Summary Chapter 24 Using Master Pages The World Before Master Pages Introduction to Master Pages Advanced Master Pages Techniques Summary Chapter 25 ASP.NET Personalization and Customization User Interface Tailoring with Themes and Skins Working with ASP.NET User Profiles User Customization with Themes and Profiles Summary Chapter 26 Introduction to Web Parts Web Part Basics Using a Personalization Provider Building Your First Web Part Page Creating Web Parts Building Connected Web Parts Summary Chapter 27 Building Rich, Data-Driven Web Applications Introduction to Data Binding in ASP.NET Using Data-Bound Controls Advanced Data-Binding Techniques Summary Chapter 28 Securing Your ASP.NET Applications Security Through Authentication Security Through Authorization The ASP.NET Security Controls Advanced ASP.NET Security Summary Chapter 29 Creating Custom ASP.NET Providers The Membership Provider The Role Provider The ProfileProvider Additional Providers Summary Chapter 30 Developing ASP.NET Controls Building User Controls Creating Server Controls Managing State Within Server Controls Summary Chapter 31 ASP.NET Management and Monitoring Introducing the New Health Monitoring System Using ASP.NET Performance Counters Summary Part V: Web Services Chapter 32 Exposing Functionality with Web Services Introduction to Web Services Creating a Simple "Hello World" Service Creating Transactional Services Managing State in Web Services Summary Chapter 33 Advanced Web Services Programming Designing for Service-Oriented Architectures (SOA) Using Web Service Discovery Using Custom SOAP Headers Programming Secure Web Services Data-Binding Windows Forms to Web Services Summary Part VI: Developing Windows Forms 2.0 Applications Chapter 34 Introduction to Windows Forms 2.0 Windows Forms Basics Creating a Windows Forms Application Using the Windows Forms Designer Elements of Good User Interface Design Summary Chapter 35 The Windows Forms Control Library The Common Controls Toolbox Containers Menus and Toolbars The Data-Related Controls The Components Toolbox Group Components and Controls for Printing Dialog Components Summary Chapter 36 Advanced User Interface Programming Introduction to GDI+ Creating Shaped Forms and Controls Using Visual Inheritance Globalizing Your User Interface Summary Chapter 37 Data Binding with Windows Forms 2.0 Binding with Typed DataSets Introducing the BindingSource Using the BindingNavigator Working with the DataGridView Data Binding with Objects Parent-Detail Binding Summary Chapter 38 Developing Smart Clients Practical Web Service Consumption Using the New Application Settings System Supporting Offline and Online Operation Authorizing and Authenticating Users Multithreaded Web Service Consumption Using the BackgroundWorker Control Summary Chapter 39 Deploying Applications Using ClickOnce Introduction to ClickOnce Publishing ClickOnce Applications Updating ClickOnce Applications Programming with the System.Deployment.Application Namespace Summary Chapter 40 Using Enterprise Services Registering Serviced Components Just-in-Time Activation and Pooling Queued Components Role-Based Security Transactions Shared Properties Loosely Coupled Events Summary Part VII: Developing Enterprise and Distributed Applications Chapter 41 Remoting Overview of Remoting Working with Remoting Channels Working with Lifetime Leases Remoting with Generics Summary Index Copyright Microsoft® Visual C# 2005 Unleashed Copyright © 2006 by Sams Publishing All rights reserved No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher No patent liability is assumed with respect to the use of the information contained herein Although every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions Nor is any liability assumed for damages resulting from the use of the information contained herein Library of Congress Catalog Card Number: 2006901231 Printed in the United States of America First Printing: May 2006 09 08 07 06 4 3 2 1 Trademarks All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized Sams Publishing cannot attest to the accuracy of this information Use of a term in this book should not be regarded as affecting the validity of any trademark or service mark Microsoft is a registered trademark of Microsoft Corporation aliases table common types table namespaces reference types shortcuts table System.Boolean System.Byte System.Char System.Decimal System.Double System.Int16 System.Int32 System.Int64 System.SByte System.Single System.String System.UInt16 System.UInt32 System.UInt64 value types Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] [Z] UDDI (Universal Description and Discovery Interface), web service URL UDT (user-defined types) Point3D example SQL Server, creating in uint aliases (.NET data types) ulong aliases (.NET data types) unboxing/boxing Unicode streams universal login dialog (smart client example) Unload stage (ASP.NET page life cycle) UnlockUser method unmanaged DLLs (interoperability) unmanaged function pointers Update (Windows) UpdateCommand UpdateCompleted event UpdateProgressChanged event updates batches, ADO.NET ClickOnce, automated updates UpdateUser method 2nd URL (uniform resource locators), smart clients user authentication, smart clients user authorization, smart clients user controls (ASP.NET) creating pages, adding to properties user interfaces designing color complexity of design count awareness intuitiveness of design size globalizing user profiles (ASP.NET) anonymous profiles, properties application services, configuring customizing 2nd profile providers, configuring user-defined functions, building via SQL Server UserAddedRow event UserDeletedRow event UserDeletingRow event UserIsOnlineTimeWindow property username groups UserName property 2nd ushort aliases (.NET data types) Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] [Z] Validate method ValidateUser method 2nd validation controls list (ASP.NET) Validation stage (ASP.NET page life cycle) validationKey attribute ( element) Value property value types boxing/unboxing defining 2nd ValueMember property variables, declaring/initializing view state restoring usage example web farms VirtualMode property visual inheritance Visual Studio Command Prompt, opening Image Library typed DataSets, creating void RaiseCallbackEvent(string eventArgument) method (ICallbackEventHandler interface) vsp files Allocation tab Call Tree tab Objects Lifetime tab Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] [Z] Web (World Wide), ClickOnce applications launching directly from publishing to web configuration, ASP.NET Web Event providers Custom Event providers list of Web.config files web events base events, inheriting from custom events lifetime events list of web farms application state session state view state web forms, Windows Forms 2.0 versus Web Parts connected Web Parts, creating controls creating methods of personalization providers properties of shared scope, user access Web Parts Pages zones web services binding, Data Sources Panel (Windows Forms) development of "Hello World" service example multithreaded web service consumption, smart clients SOA SOAP headers state management token stores Transactional Services, creating URL, smart clients obtaining for storing in usage process Web Services Discovery WSDL 2nd WSE Web.conf files, ASP.NET State Server providers Web.config files ASP.NET application security encrypting Forms authentication health monitoring system (ASP.NET) custom events lifetime events Web Event providers elements Membership provider, configuring Profile providers, creating Role provider, configuring SQL Server Session State providers, modifying via WebBrowser control (Windows Control Libraries) WebControl class WebPartManager control (Web Parts) 2nd WebPartZone control (Web Parts) 2nd 3rd while loops Win32 API, unmanaged DLLs Windows Applications (Windows Forms 2.0) Windows authentication Windows Control Libraries (Windows Forms 2.0) Common Controls Toolbox Button control CheckBox control CheckedListBox control ComboBox control DateTimePicker control Label control LinkLabel control ListBox control ListView control MaskedTextBox control MonthCalendar control NotifyIcon control NumericUpDown control PictureBox control ProgressBar control RadioButton control RichTextBox control TextBox control ToolTip control TreeView control WebBrowser control Components Toolbox BackgroundWorker component 2nd DirectoryEntry component DirectorySearcher component ErrorProvider component EventLog component FileSystemWatcher component HelpProvider component ImageList component MessageQueue component PerformanceCounter component Process component SerialPort component ServiceController component Timer component containers data-related controls section dialog components section menus and toolbars section Printing section Windows Forms 2.0 applications creating cultures, changing Class Libraries Console Applications Data Sources panel, building web services Forms Designer Anchor selection pop-up Dock selection pop-up Document Outline window resizable forms, creating SnapLines NET Framework shaped forms/controls, creating user interfaces, globalizing visual inheritance web forms versus Windows Applications Windows Control Libraries Common Controls Toolbox Components Toolbox containers data-related controls section dialog components section menus and tables section Printing section Windows Service Windows Forms Designer Anchor selection pop-up Dock selection pop-up Document Outline window resizable forms, creating SnapLines Windows Installer, ClickOnce versus Windows Service (Windows Forms 2.0) Windows Update WindowsAuthenticationModule class WindowsIdentity class WindowsPrincipal class wizards ASP.NET SQL Server Configuration Wizard, configuring application services Data Source Configuration Wizard Performance Wizard Publish Wizard Word documents, creating with PIA (Primary InterOp Assembly) wrappers Runtime Callable (RCW) strongly typed wrappers, accessing assembly resources WSDL (Web Services Description Language) 2nd WSE (Web Services Extensions) Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] [Z] XML (eXtensible Markup Language) DataTables, loading/saving documents display sample hierarchy levels, representation of Items.xml document reading/writing XSD validations XSLT transformations DOM itemsTransform.xslt document querying, XPath XML Schema home page XmlDataSource XmlDocument class, methods table XmlNode class XMLProvider C# Class Library Membership provider, creating Profile provider, creating Role provider, creating/installing XOR (^) operators [See also OR operators.] XPath XSD (XML Schema Definition) items.xsd document schemas, creating typed DataSets XSLT (XSL Transformation) Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] [Z] zones (Web Parts) ... Introduction to Interoperability in C# Using COM Objects from the NET Framework Using NET Classes from COM Accessing Code in Unmanaged DLLs Summary Chapter 14 Code Access Security Introduction to Code Access Security (CAS) Using and Administering Security Policy... Authorizing and Authenticating Users Multithreaded Web Service Consumption Using the BackgroundWorker Control Summary Chapter 39 Deploying Applications Using ClickOnce Introduction to ClickOnce Publishing ClickOnce Applications... CHAPTER 4 Arrays and Collections 33 CHAPTER 5 Object-Oriented Programming in C# 51 CHAPTER 6 Introduction to Generics 65 Chapter 1 Introduction to C# 2.0 In This Chapter Introduction to C# 2.0 At A Glance What Is the

Ngày đăng: 26/03/2019, 16:12

TỪ KHÓA LIÊN QUAN