Manuals
/
Brands
/
Computer Equipment
/
Computer Accessories
/
Microsoft
/
Computer Equipment
/
Computer Accessories
Microsoft
9GD00001
- page 136
1
136
449
449
Download
449 pages, 10.45 Mb
113
Chapter
5
Creating and
Building Projects
Contents
Main
Page
About the Author
About the Technical Editor
Page
Page
Page
Page
vii
Contents at a Glance
viii Microsoft Visual Studio 2010: A Beginners Guide
ix
Contents
x Microsoft Visual Studio 2010: A Beginners Guide
Contents xi
xii Microsoft Visual Studio 2010: A Beginners Guide
Contents xiii
xiv Microsoft Visual Studio 2010: A Beginners Guide
Contents xv
Page
xvii
Acknowledgments
A
Page
xix
Introduction
V
xx Microsoft Visual Studio 2010: A Beginners Guide
Introduction xxi
Page
Page
Page
Page
4 Microsoft Visual Studio 2010: A Beginners Guide
Y
What Is Visual Studio 2010 About?
Automatically Generated Code
Chapter 1: Introducing Visual Studio 2010 5
Rapid Coding Experience
Everything at Your Fingertips
Customizability and Extensibility
6 Microsoft Visual Studio 2010: A Beginners Guide
Installing Visual Studio 2010
System Requirements
Chapter 1: Introducing Visual Studio 2010 7
8 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 1: Introducing Visual Studio 2010 9
Page
Chapter 1: Introducing Visual Studio 2010 11
Page
Chapter 1: Introducing Visual Studio 2010 13
Navigating the Visual Studio 2010 Environment
14 Microsoft Visual Studio 2010: A Beginners Guide
The Menu
Chapter 1: Introducing Visual Studio 2010 15
Toolbar
Work Area
16 Microsoft Visual Studio 2010: A Beginners Guide
Toolbox
Solution Explorer
Managing VS Windows
Page
18 Microsoft Visual Studio 2010: A Beginners Guide
Docking Windows
Chapter 1: Introducing Visual Studio 2010 19
Floating Windows
20 Microsoft Visual Studio 2010: A Beginners Guide
Tabbed Windows
Chapter 1: Introducing Visual Studio 2010 21
Closing and Opening Windows
22 Microsoft Visual Studio 2010: A Beginners Guide
Modifying Environment Settings after Setup
Chapter 1: Introducing Visual Studio 2010 23
Exporting Selected Environment Settings
24 Microsoft Visual Studio 2010: A Beginners Guide
Importing Selected Environment Settings
Page
26 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 1: Introducing Visual Studio 2010 27
28 Microsoft Visual Studio 2010: A Beginners Guide
Resetting All Settings
Chapter 1: Introducing Visual Studio 2010 29
Familiarization with Visual Studio Project Types
Chapter 1: Introducing Visual Studio 2010 31
32 Microsoft Visual Studio 2010: A Beginners Guide
Windows Projects
Chapter 1: Introducing Visual Studio 2010 33
Web Projects
34 Microsoft Visual Studio 2010: A Beginners Guide
Office Projects
SharePoint Projects
Database Projects
Page
36 Microsoft Visual Studio 2010: A Beginners Guide
T
Starting a Bare-Bones Project
Chapter 2: Learning Just Enough C# or VB.NET: Basic Syntax 37
38 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 2: Learning Just Enough C# or VB.NET: Basic Syntax 39
Examining the Code Skeleton
40 Microsoft Visual Studio 2010: A Beginners Guide
The Main Method
Chapter 2: Learning Just Enough C# or VB.NET: Basic Syntax 41
The Program Class
42 Microsoft Visual Studio 2010: A Beginners Guide
The FirstProgram Namespace
Chapter 2: Learning Just Enough C# or VB.NET: Basic Syntax 43
An Overview of the VS Code Editor
44 Microsoft Visual Studio 2010: A Beginners Guide
Class and Member Locators
Bookmarks
Chapter 2: Learning Just Enough C# or VB.NET: Basic Syntax 45
Setting Editor Options
Page
Chapter 2: Learning Just Enough C# or VB.NET: Basic Syntax 47
Saving Time with Snippets
48 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 2: Learning Just Enough C# or VB.NET: Basic Syntax 49
Coding Expressions and Statements
Making Intellisense Work for You
50 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 2: Learning Just Enough C# or VB.NET: Basic Syntax 51
Running Programs
52 Microsoft Visual Studio 2010: A Beginners Guide
Primitive Types and Expressions
Primitive Types
Chapter 2: Learning Just Enough C# or VB.NET: Basic Syntax 53
54 Microsoft Visual Studio 2010: A Beginners Guide
Expressions
Chapter 2: Learning Just Enough C# or VB.NET: Basic Syntax 55
The Ternary and Immediate If Operators
Enums
56 Microsoft Visual Studio 2010: A Beginners Guide
Listing 2-3 An example of an enum
Listing 2-4 shows how you can use the BankAccount enum:
Listing 2-4 Using an enum
Chapter 2: Learning Just Enough C# or VB.NET: Basic Syntax 57
Branching Statements
Expressions
58 Microsoft Visual Studio 2010: A Beginners Guide
if and else Snippets
Chapter 2: Learning Just Enough C# or VB.NET: Basic Syntax 59
Switch/Select Statements
60 Microsoft Visual Studio 2010: A Beginners Guide
Switch Statement Snippets
Chapter 2: Learning Just Enough C# or VB.NET: Basic Syntax 61
Loops
For Loops
62 Microsoft Visual Studio 2010: A Beginners Guide
The for Loop Snippet
For Each Loops
Chapter 2: Learning Just Enough C# or VB.NET: Basic Syntax 63
The For Each Loop Snippet
64 Microsoft Visual Studio 2010: A Beginners Guide
While Loops
The while Loop Snippet
Chapter 2: Learning Just Enough C# or VB.NET: Basic Syntax 65
Do Loops
The Do Loop Snippet
66 Microsoft Visual Studio 2010: A Beginners Guide
Page
68 Microsoft Visual Studio 2010: A Beginners Guide
A
Creating Classes
Class Syntax
Chapter 3: Learning Just Enough C# and VB.NET: Types and Members 69
70 Microsoft Visual Studio 2010: A Beginners Guide
Class Inheritance
Chapter 3: Learning Just Enough C# and VB.NET: Types and Members 71
The class Snippet
72 Microsoft Visual Studio 2010: A Beginners Guide
Writing Methods
Declaring and Using a Method
Chapter 3: Learning Just Enough C# and VB.NET: Types and Members 73
C#: (MessagePrinter.cs)
VB (MessagePrinter.vb)
74 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 3: Learning Just Enough C# and VB.NET: Types and Members 75
Declaring Parameters and Passing Arguments
76 Microsoft Visual Studio 2010: A Beginners Guide
C# (MessagePrinter.cs):
Chapter 3: Learning Just Enough C# and VB.NET: Types and Members 77
78 Microsoft Visual Studio 2010: A Beginners Guide
Returning Data and Using Method Results
Chapter 3: Learning Just Enough C# and VB.NET: Types and Members 79
C# (Calc.cs):
80 Microsoft Visual Studio 2010: A Beginners Guide
Method Snippets
Chapter 3: Learning Just Enough C# and VB.NET: Types and Members 81
Coding Fields and Properties
Declaring and Using Fields
82 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 3: Learning Just Enough C# and VB.NET: Types and Members 83
Declaring and Using Properties
84 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 3: Learning Just Enough C# and VB.NET: Types and Members 85
86 Microsoft Visual Studio 2010: A Beginners Guide
The Property Snippet
Chapter 3: Learning Just Enough C# and VB.NET: Types and Members 87
Page
Page
90 Microsoft Visual Studio 2010: A Beginners Guide
I
Understanding Delegates and Events
Chapter 4: Learning Just Enough C# and VB.NET: Intermediate Syntax 91
Events
92 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 4: Learning Just Enough C# and VB.NET: Intermediate Syntax 93
94 Microsoft Visual Studio 2010: A Beginners Guide
Delegates
Chapter 4: Learning Just Enough C# and VB.NET: Intermediate Syntax 95
Event, Delegate, and Handler Code Completion
96 Microsoft Visual Studio 2010: A Beginners Guide
Implementing Interfaces
Chapter 4: Learning Just Enough C# and VB.NET: Intermediate Syntax 97
Creating an Interface
98 Microsoft Visual Studio 2010: A Beginners Guide
Making Classes Implement the Interface
Listing 4-3 Checking class that implements IAccount interface
Chapter 4: Learning Just Enough C# and VB.NET: Intermediate Syntax 99
Listing 4-4 Saving class that implements IAccount interface
100 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 4: Learning Just Enough C# and VB.NET: Intermediate Syntax 101
Writing Code That Uses an Interface
102 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 4: Learning Just Enough C# and VB.NET: Intermediate Syntax 103
104 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 4: Learning Just Enough C# and VB.NET: Intermediate Syntax 105
106 Microsoft Visual Studio 2010: A Beginners Guide
The interface Snippet
Chapter 4: Learning Just Enough C# and VB.NET: Intermediate Syntax 107
Applying Arrays and Generics
Coding Arrays
108 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 4: Learning Just Enough C# and VB.NET: Intermediate Syntax 109
Coding Generics
110 Microsoft Visual Studio 2010: A Beginners Guide
Page
Page
Page
114 Microsoft Visual Studio 2010: A Beginners Guide
P
Constructing Solutions and Projects
Chapter 5: Creating and Building Projects 115
Creating a New Project
116 Microsoft Visual Studio 2010: A Beginners Guide
Navigating the Solution Explorer
Chapter 5: Creating and Building Projects 117
118 Microsoft Visual Studio 2010: A Beginners Guide
Examining Property Settings
Chapter 5: Creating and Building Projects 119
Assembly Name
Default Namespace
Target Framework
Output Type
120 Microsoft Visual Studio 2010: A Beginners Guide
Startup Object
Icon and Manifest
Chapter 5: Creating and Building Projects 121
Assembly Information
122 Microsoft Visual Studio 2010: A Beginners Guide
Referencing Assemblies
Chapter 5: Creating and Building Projects 123
Adding a .NET Assembly Reference
124 Microsoft Visual Studio 2010: A Beginners Guide
Managing Assembly References
Chapter 5: Creating and Building Projects 125
Referencing Your Own Class Libraries
126 Microsoft Visual Studio 2010: A Beginners Guide
Using Code in Class Libraries
Chapter 5: Creating and Building Projects 127
128 Microsoft Visual Studio 2010: A Beginners Guide
Listing 5-2 Application code calling class librar y code
Chapter 5: Creating and Building Projects 129
Compiling Applications
Building Solutions/Projects
130 Microsoft Visual Studio 2010: A Beginners Guide
Rebuilding Solutions/Projects
Cleaning Solutions/Projects
Chapter 5: Creating and Building Projects 131
Managing Dependencies and Build Order
Page
Chapter 5: Creating and Building Projects 133
Managing Compilation Settings
134 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 5: Creating and Building Projects 135
136 Microsoft Visual Studio 2010: A Beginners Guide
Navigating a Project with Class View
Chapter 5: Creating and Building Projects 137
Using the Class Designer
Class Designer Visualization
138 Microsoft Visual Studio 2010: A Beginners Guide
Class Designer Code Generation
Chapter 5: Creating and Building Projects 139
140 Microsoft Visual Studio 2010: A Beginners Guide
Listing 5-3 Code generated from the Class Designer
Chapter 5: Creating and Building Projects 141
Page
Page
144 Microsoft Visual Studio 2010: A Beginners Guide
M
Example Code for This Chapter
Chapter 6: Debugging with Visual Studio 145
Listing 6-1 Example code for chapter
C#: Program.cs
C#: Customer.cs
C#: Order.cs
146 Microsoft Visual Studio 2010: A Beginners Guide
VB: Module1.vb
Chapter 6: Debugging with Visual Studio 147
148 Microsoft Visual Studio 2010: A Beginners Guide
Development-Time Code Tools
Chapter 6: Debugging with Visual Studio 149
150 Microsoft Visual Studio 2010: A Beginners Guide
Configuring Debug Mode
Chapter 6: Debugging with Visual Studio 151
152 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 6: Debugging with Visual Studio 153
154 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 6: Debugging with Visual Studio 155
Setting Breakpoints
156 Microsoft Visual Studio 2010: A Beginners Guide
Creating a Breakpoint
Chapter 6: Debugging with Visual Studio 157
Customizing a Breakpoint
158 Microsoft Visual Studio 2010: A Beginners Guide
Managing Breakpoints
Stepping Through Code
Chapter 6: Debugging with Visual Studio 159
Operation Explanation
Table 6-2 Step Operations
160 Microsoft Visual Studio 2010: A Beginners Guide
Inspecting Application State
Locals and Autos Windows
Chapter 6: Debugging with Visual Studio 161
Watch Windows
162 Microsoft Visual Studio 2010: A Beginners Guide
The Immediate Window
Chapter 6: Debugging with Visual Studio 163
The Call Stack Window
The Quick Watch Window
164 Microsoft Visual Studio 2010: A Beginners Guide
Watching Variables with Pin To Source
Chapter 6: Debugging with Visual Studio 165
Working with IntelliTrace
166 Microsoft Visual Studio 2010: A Beginners Guide
Solving Problems with VS Debugger
Chapter 6: Debugging with Visual Studio 167
A Program with Bugs
The Customer Class
168 Microsoft Visual Studio 2010: A Beginners Guide
The CustomerRepository Class
Chapter 6: Debugging with Visual Studio 169
The Program with Bugs
170 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 6: Debugging with Visual Studio 171
Finding the Bug
172 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 6: Debugging with Visual Studio 173
174 Microsoft Visual Studio 2010: A Beginners Guide
Fixing the First Bug
Chapter 6: Debugging with Visual Studio 175
Debugging and Resolving NullReferenceException Problems
176 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 6: Debugging with Visual Studio 177
178 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 6: Debugging with Visual Studio 179
180 Microsoft Visual Studio 2010: A Beginners Guide
Page
182 Microsoft Visual Studio 2010: A Beginners Guide
M
Working with Databases
Introduction to Server Explorer
Chapter 7: Working with Data 183
Creating a Database
184 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 7: Working with Data 185
Adding Tables
186 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 7: Working with Data 187
Relating Tables with Foreign Keys
188 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 7: Working with Data 189
190 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 7: Working with Data 191
192 Microsoft Visual Studio 2010: A Beginners Guide
Adding Stored Procedures
Chapter 7: Working with Data 193
Configuring Database Options
194 Microsoft Visual Studio 2010: A Beginners Guide
Learning Language Integrated Query (LINQ)
Querying Object Collections with LINQ
Chapter 7: Working with Data 195
Listing 7-2 A program demonstrating how to make a LINQ to objects query
196 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 7: Working with Data 197
198 Microsoft Visual Studio 2010: A Beginners Guide
Creating a LINQ Projection with Anonymous Types
Chapter 7: Working with Data 199
Using LINQ to Sort Collection Results
200 Microsoft Visual Studio 2010: A Beginners Guide
Handling Data with LINQ to SQL
Setting Up LINQ to SQL
Chapter 7: Working with Data 201
Working with the LINQ to SQL Designer
202 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 7: Working with Data 203
Introduction to Querying LINQ to SQL
204 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 7: Working with Data 205
Performing Queries on Multiple Tables
206 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 7: Working with Data 207
208 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 7: Working with Data 209
210 Microsoft Visual Studio 2010: A Beginners Guide
Inserting Data with LINQ to SQL
Chapter 7: Working with Data 211
Updating Data with LINQ to SQL
212 Microsoft Visual Studio 2010: A Beginners Guide
Deleting Data with LINQ to SQL
Chapter 7: Working with Data 213
214 Microsoft Visual Studio 2010: A Beginners Guide
Page
Page
Page
218 Microsoft Visual Studio 2010: A Beginners Guide
W
Starting a WPF Project
Chapter 8: Building Desktop Applications with WPF 219
220 Microsoft Visual Studio 2010: A Beginners Guide
Understanding Layout
Grid Layout
Chapter 8: Building Desktop Applications with WPF 221
222 Microsoft Visual Studio 2010: A Beginners Guide
StackPanel Layout
Chapter 8: Building Desktop Applications with WPF 223
DockPanel Layout
224 Microsoft Visual Studio 2010: A Beginners Guide
WrapPanel Layout
Chapter 8: Building Desktop Applications with WPF 225
Canvas Layout
226 Microsoft Visual Studio 2010: A Beginners Guide
Using WPF Controls
Managing Windows for Controls
Chapter 8: Building Desktop Applications with WPF 227
228 Microsoft Visual Studio 2010: A Beginners Guide
Setting Properties
Handling Events
Chapter 8: Building Desktop Applications with WPF 229
Figure 8-9 The Properties window Events tab
Listing 8-1 A WPF code-behind file
230 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 8: Building Desktop Applications with WPF 231
232 Microsoft Visual Studio 2010: A Beginners Guide
Figure 8-10 Readable button ID and event handler name
Chapter 8: Building Desktop Applications with WPF 233
Coding Event Handlers
234 Microsoft Visual Studio 2010: A Beginners Guide
Working with Data in WPF
Chapter 8: Building Desktop Applications with WPF 235
Setting Up a Data Source
236 Microsoft Visual Studio 2010: A Beginners Guide
Page
238 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 8: Building Desktop Applications with WPF 239
240 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 8: Building Desktop Applications with WPF 241
Configuring a ComboBox
242 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 8: Building Desktop Applications with WPF 243
Reading and Saving Data
244 Microsoft Visual Studio 2010: A Beginners Guide
Using the DataGrid
Chapter 8: Building Desktop Applications with WPF 245
Figure 8-16 Displaying information in a Grid
246 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 8: Building Desktop Applications with WPF 247
Page
Page
250 Microsoft Visual Studio 2010: A Beginners Guide
A
Understanding ASP.NET MVC
Chapter 9: Creating Web Applications with ASP.NET MVC 251
Starting an ASP.NET MVC Project
252 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 9: Creating Web Applications with ASP.NET MVC 253
254 Microsoft Visual Studio 2010: A Beginners Guide
Creating the Models
Building Controllers
Chapter 9: Creating Web Applications with ASP.NET MVC 255
256 Microsoft Visual Studio 2010: A Beginners Guide
Displaying Views
Looking Inside a View
Chapter 9: Creating Web Applications with ASP.NET MVC 257
258 Microsoft Visual Studio 2010: A Beginners Guide
Organizing View Files
Assigning MasterPage Files
Chapter 9: Creating Web Applications with ASP.NET MVC 259
260 Microsoft Visual Studio 2010: A Beginners Guide
Partial Views (a.k.a. User Controls)
Chapter 9: Creating Web Applications with ASP.NET MVC 261
262 Microsoft Visual Studio 2010: A Beginners Guide
Managing Routing
Chapter 9: Creating Web Applications with ASP.NET MVC 263
264 Microsoft Visual Studio 2010: A Beginners Guide
Building a Customer Management Application
Chapter 9: Creating Web Applications with ASP.NET MVC 265
Creating a Repository
266 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 9: Creating Web Applications with ASP.NET MVC 267
268 Microsoft Visual Studio 2010: A Beginners Guide
Creating a Customer Controller
Chapter 9: Creating Web Applications with ASP.NET MVC 269
Displaying a Customer List
270 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 9: Creating Web Applications with ASP.NET MVC 271
Listing 9-8 A Customer List View
272 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 9: Creating Web Applications with ASP.NET MVC 273
274 Microsoft Visual Studio 2010: A Beginners Guide
Adding a New Customer
Chapter 9: Creating Web Applications with ASP.NET MVC 275
276 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 9: Creating Web Applications with ASP.NET MVC 277
Listing 9-10 View for creating a new Customer
278 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 9: Creating Web Applications with ASP.NET MVC 279
Updating Existing Customers
280 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 9: Creating Web Applications with ASP.NET MVC 281
Deleting a Customer
282 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 9: Creating Web Applications with ASP.NET MVC 283
284 Microsoft Visual Studio 2010: A Beginners Guide
Page
286 Microsoft Visual Studio 2010: A Beginners Guide
S
Starting a Silverlight Project
Page
288 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 10: Designing Silverlight Applications 289
Table 10-1 Object Tag Parameters for Silverlight
Parameter Description
290 Microsoft Visual Studio 2010: A Beginners Guide
Navigating the Silverlight Designer
Using Silverlight Controls
Chapter 10: Designing Silverlight Applications 291
292 Microsoft Visual Studio 2010: A Beginners Guide
Listing 10-2 Playing and stopping a video
Chapter 10: Designing Silverlight Applications 293
294 Microsoft Visual Studio 2010: A Beginners Guide
Running Silverlight Out-of-Browser (OOB)
Chapter 10: Designing Silverlight Applications 295
Page
Chapter 10: Designing Silverlight Applications 297
Deploying Silverlight Applications
298 Microsoft Visual Studio 2010: A Beginners Guide
Page
300 Microsoft Visual Studio 2010: A Beginners Guide
W
Chapter 11: Deploying Web Services with WCF 301
Starting a WCF Project
302 Microsoft Visual Studio 2010: A Beginners Guide
Specifying a Contract with WCF Interfaces
Examining the VS-Generated Contract
Chapter 11: Deploying Web Services with WCF 303
304 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 11: Deploying Web Services with WCF 305
Creating Your Own Contract
306 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 11: Deploying Web Services with WCF 307
308 Microsoft Visual Studio 2010: A Beginners Guide
Implementing Logic with WCF Classes
Chapter 11: Deploying Web Services with WCF 309
310 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 11: Deploying Web Services with WCF 311
312 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 11: Deploying Web Services with WCF 313
314 Microsoft Visual Studio 2010: A Beginners Guide
Hosting a WCF Service
Chapter 11: Deploying Web Services with WCF 315
Following General Hosting Procedures
Installing IIS 7 on Windows 7
Page
Chapter 11: Deploying Web Services with WCF 317
Creating a Web Site on IIS 7 on Windows 7
Order of Installations Matter
318 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 11: Deploying Web Services with WCF 319
320 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 11: Deploying Web Services with WCF 321
Deploying the WCF Service to IIS
322 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 11: Deploying Web Services with WCF 323
324 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 11: Deploying Web Services with WCF 325
326 Microsoft Visual Studio 2010: A Beginners Guide
Communicating with a WCF Service
Creating a Service Reference
Chapter 11: Deploying Web Services with WCF 327
328 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 11: Deploying Web Services with WCF 329
Coding Web Service Calls
330 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 11: Deploying Web Services with WCF 331
332 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 11: Deploying Web Services with WCF 333
334 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 11: Deploying Web Services with WCF 335
336 Microsoft Visual Studio 2010: A Beginners Guide
Deploying a Client That Consumes a Web Service
Table 11-1 Configuration Files for Each Application Type
Application Type Configuration File
Chapter 11: Deploying Web Services with WCF 337
Creating a Web Service in a Web Site
338 Microsoft Visual Studio 2010: A Beginners Guide
Page
Page
Page
342 Microsoft Visual Studio 2010: A Beginners Guide
I
Implementing Custom Templates
Chapter 12: Customizing the Development Environment 343
Creating New Project Templates
Modifying a Project
344 Microsoft Visual Studio 2010: A Beginners Guide
Exporting the Project Template
Chapter 12: Customizing the Development Environment 345
346 Microsoft Visual Studio 2010: A Beginners Guide
Using the New Project Template
Chapter 12: Customizing the Development Environment 347
Creating New Item Templates
Creating an Item Template
348 Microsoft Visual Studio 2010: A Beginners Guide
Exporting the Item Template
Chapter 12: Customizing the Development Environment 349
350 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 12: Customizing the Development Environment 351
Using an Item Template
352 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 12: Customizing the Development Environment 353
Creating Custom Snippets
Creating a New Snippet
354 Microsoft Visual Studio 2010: A Beginners Guide
Examining Existing Snippets
Chapter 12: Customizing the Development Environment 355
356 Microsoft Visual Studio 2010: A Beginners Guide
Creating New Snippets
Chapter 12: Customizing the Development Environment 357
358 Microsoft Visual Studio 2010: A Beginners Guide
Managing the Snippet Library
File Folders Holding Snippets
Chapter 12: Customizing the Development Environment 359
Using the Snippets Manager
360 Microsoft Visual Studio 2010: A Beginners Guide
Writing Macros
Recording a Macro
Chapter 12: Customizing the Development Environment 361
362 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 12: Customizing the Development Environment 363
364 Microsoft Visual Studio 2010: A Beginners Guide
Saving a Macro
Chapter 12: Customizing the Development Environment 365
Editing Macros
366 Microsoft Visual Studio 2010: A Beginners Guide
Figure 12-9 The Macro editor
Listing 12-3 Code for the ValidateStringParameter macro
Chapter 12: Customizing the Development Environment 367
368 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 12: Customizing the Development Environment 369
370 Microsoft Visual Studio 2010: A Beginners Guide
Page
372 Microsoft Visual Studio 2010: A Beginners Guide
P
Creating a Visual Studio Add-In
Running the Add-In Project Wizard
Chapter 13: Extending Visual Studio 2010 373
Page
Chapter 13: Extending Visual Studio 2010 375
376 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 13: Extending Visual Studio 2010 377
Examining an Add-In Wizard Solution
378 Microsoft Visual Studio 2010: A Beginners Guide
Drilling into the Connect Class
Chapter 13: Extending Visual Studio 2010 379
380 Microsoft Visual Studio 2010: A Beginners Guide
Listing 13-1 Skeleton code for the Connect class
Chapter 13: Extending Visual Studio 2010 381
382 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 13: Extending Visual Studio 2010 383
Adding Functionality to an Add-In
384 Microsoft Visual Studio 2010: A Beginners Guide
Reviewing the OnConnection Method
Understanding OnConnection Parameters
Chapter 13: Extending Visual Studio 2010 385
Reviewing OnConnection Generated Code
Listing 13-2 The OnConnection method
386 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 13: Extending Visual Studio 2010 387
388 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 13: Extending Visual Studio 2010 389
390 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 13: Extending Visual Studio 2010 391
Implementing the Exec Method
392 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 13: Extending Visual Studio 2010 393
394 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 13: Extending Visual Studio 2010 395
Setting Status with QueryStatus
396 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 13: Extending Visual Studio 2010 397
Deploying an Add-In
398 Microsoft Visual Studio 2010: A Beginners Guide
Chapter 13: Extending Visual Studio 2010 399
Where to Go Next
400 Microsoft Visual Studio 2010: A Beginners Guide
Page
Page
Page
404 Microsoft Visual Studio 2010: A Beginners Guide
E
VS 2010 XML Editor
XML Prefixes
Appendix A: Introduction to XML 405
XML Elements
Attributes
406 Microsoft Visual Studio 2010: A Beginners Guide
Namespaces
Appendix A: Introduction to XML 407
The XML Menu
Configuring XML Options
Page
Page
410 Microsoft Visual Studio 2010: A Beginners Guide
X
Starting a WPF Project
Appendix B: Introduction to XAML 411
Elements as Classes
Attributes as Properties
Executing the XAML Document
412 Microsoft Visual Studio 2010: A Beginners Guide
Property Elements
Appendix B: Introduction to XAML 413
414 Microsoft Visual Studio 2010: A Beginners Guide
Markup Extensions
Appendix B: Introduction to XAML 415
416 Microsoft Visual Studio 2010: A Beginners Guide
Index
Symbols
A
418 Microsoft Visual Studio 2010: A Beginners Guide
B
C
Index 419
D
420 Microsoft Visual Studio 2010: A Beginners Guide
E
F
Index 421
G
H
I
J
K
M
N
O
Index 423
P
Q
R
424 Microsoft Visual Studio 2010: A Beginners Guide
S
T
Index 425
U
V
426 Microsoft Visual Studio 2010: A Beginners Guide
W
X