1-Click deployment, 884
3-D graphics, Silverlight applications, 908
64-bit browsers, support, 928
* (multiplication) operator, 155
+ (addition) operator, 155, 313
- (pointer to address in memory) keyword, 95
- (subtraction) operator, 155, 313
/ (division) operator, 155, 313
<> (inequality) operator, 104, 164, 313
< (less than) operator, 164, 313
<< (left-shift) operator, 162, 313
<= (less than or equal to) operator, 164, 313
= (equality) operator, 126, 164, 313, 570
> (greater than) operator, 164, 313
>= (greater than to equal to) operator, 164, 313
>> (right-shift) operator, 162, 313
(integer division) operator, 155, 313
^ (exponentiation) operator, 155, 313
_(underscore) character, 70, 265, 355, 552
ABC (Address, Binding, and Contract) properties, 992
abstract classes, 336
CLS, 337
code, 427
contra variance, 536
inheritance, 337
interfaces, implementing, 428
accepting licenses, NuGet, 1285
Access (Microsoft), 541
accessing
CAS, 1148
databases, 540
Developer Center (Windows Phone), 987
directories, 455
Generate from Usage feature, 433-439
local file systems, 926
members, Visual Basic 2012 projects, 67-68
MSDN Library, 56
My.Resources property, 500
resources, 81
role configuration options, 935
System.IO.DriveInfo class, 459
Visual Basic 2012 tools, 1359
Access property, 428
accounts
Storage Account service, 930
actions
methods, executing with, 235-247
XBAP, 722
Activated event, 509
Activity log (Windows Azure), 947
AddAfter method, 410
AddAfterSelf method, 674
AddBeforeSelf method, 674
Add command, 424
adding. See also insert operations
breakpoints, 51
class diagrams, 431
classes, LINQ to SQL, 589
code snippets, 1282
columns, 710
Silverlight applications, 897-900
XAML, 701
DataSets, LINQ to DataSets, 622
EDMs, 631
environment variables, 1242
expressions to Watch windows, 190
Imports directives, 286
ink notes, 806
items
to projects, 30
to templates, 1265
members to interfaces, 426
models, 868
multiple roles, 936
navigation controls, 874
objects, Visual Studio Class Designer, 425-428
Option Infer directives, 513
output to projects (InstallShield), 1236
pages, Windows Phone, 966
references
to Data Services, 1023
resources, 498
setup projects (InstallShield), 1232
sources, Silverlight applications, 912-913
stored procedures to EDMs, 654
strong names to projects, 1225
Windows Forms, 1193
XML schemas, 1112
Add-in Manager tool, 1304
add-ins
deploying, 1300
managing, 1304
Windows Phone, 957
addition (+) operator, 155, 313
AddLast method, 410
AddMemoryPressure method, 280
concurrent collections, 1087
Add New Item dialog box, 589, 1267
AddNew method, 833
AddParticipant method, 1080
AddParticipants method, 1080
AddProduct method, 606
AddRange method, 395
Add Reference command, 84
Address, Binding, and Contract properties. See ABC properties, 992
addresses, ABC properties, 992
AddressOf clause, 381
Add Service Reference dialog box, 1002
AdHost class, 1194
Adjust Shapes Width command, 424
ADO.NET, 539
connection modes, 541
databases, connecting, 541-543
disconnected modes, 541
Entity Framework, 629
Code First approach, 657
downloading additions to, 658
handling optimistic concurrency, 648-650
instantiating, 645
LINQ to Entities, querying EDMs with, 652-653
mapping stored procedures, 654-657
SQL, querying EDMs with, 653-654
update operations, 648
partial methods, 251
AdRotator control, 858
Advanced Compile Options dialog box, 44
Advanced Compiler Settings window, 46-47
advanced features, IDEs, 1261
advanced garbage collection, 279-281
agents, Windows Phone, 960-963
Aggregate clause, 570
AggregateException, 1076, 1101
Aggregate method, 519
aggregation operators, 570-572
Ajax
applications, 1015
controls, 854
aligning text, 802
All method, 519
reference types/value types, comparing, 106-108
structures, 309
value types, 94
AllowMultiple property, 1187
AllowPartiallyTrustedCallers attribute, 1154
ambiguities in namespaces, avoiding, 284, 294-295
analysis tools (Visual Studio 2012), 1309
Code Clone Detection, 1310, 1317-1319
Dependency Graphs, generating, 1334-1335
code, 264
error messages, 208
method calls, 61
Microsoft code analysis rules, 1311
value types, 100
AndAlso operator, 158-159, 570
And operator, 158-162, 313, 570
angles, modifying elements, 780
animations
ColorAnimation, applying, 786-788
DoubleAnimation, applying, 783-785
Silverlight applications. See Silverlight applications
Windows Phone, 959
annotations
applying, 805
Data Annotations, Code First approach, 663-665
flow documents, 803
services, implementing, 804
anonymous iterators, 419
anonymous types
LINQ, 552
LINQ to DataSets, 623
LINQ to SQL, 603
AnyCPU, 44
Any method, 519
APIs (application programming interfaces), 1191
Fluent APIs, Entity Framework (ADO.NET), 665-668
structures, passing, 310
Win32 API calls, references to, 1206
APM (Asynchronous Programming Model), 1106-1107
App.Current property, 924
AppDomain class, 1146
AppDomain.CreateDomain method, 1147
AppDomainUnloadedException, 1147
ApplicationBar class, Windows Phone applications (apps), 982
Application Building Blocks, 930
Application class, members, 720
ApplicationDeployment class, 1257
Application Deployment tool, 957
Application Files (ClickOnce), 1251
Application Files group (InstallShield),
ApplicationIcon.png, 986
Application Information group (InstallShield), 1233
Application Registry (InstallShield), 1239
applications (apps)
AJAX, 1015
application-level only settings, 492-493
ASP.NET, 851. See also ASP.NET
creating with Visual Basic 2012, 864-862
ClickOnce, 1245. See also ClickOnce
overview of, 1246
Registration-Free COM, 1258-1259
security, 1255
clients
ClickOnce, 1247
instances, 606
data services, hosting, 1016
desktop, Transparency Level 2, 1151
domains, assemblies, 1145-1147
Edit and Continue feature, 54-55
frameworks
My.Application property, 478
WPF, 508
HTTP, 8
InstallShield, 1229. See also InstallShield
localizing, 841
logs
Metro-style. See Metro-style apps, 7-8, 407
multi-targeting, 18
My namespace, applying, 506-510
.NET Framework, 2. See also .NET Framework
PIAs, deploying without, 86-87
references, GAC, 1227
running, 875
serialization, 1035
settings, Visual Basic 2012 projects, 81-83
Silverlight, 55, 893. See also Silverlight applications
deploying, 899
drag’n’drop data-binding, 916-919
out-of-browser applications, 923-926
overview of, 894
packages, 899
permissions, 926
security, 926
Silverlight Navigation Applications, 908-910
Store (Windows 8), 1111
types, My Project, 34
video, playing, 798
applying breakpoints/trace points, 184-187
Autos window, 192
Just My Code debugging, 182-184
Locals window, 187
Mixed Mode debugging, 182
Visual Studio 2012, 11. See also Visual Studio 2010
Visual Studio 2012 Express for Web, 932
Windows Azure, 929
creating demo projects, 933-944
registering the Developer Portal, 931
Windows Phone, 955
ApplicationBar class, 982
submitting to Marketplace, 987-989
WPF
arranging controls with panels, 709-716
contra variance, 536
controls, 725. See also controls
creating, 693
Logical Tree/Visual Tree, 704-705
Application Shortcuts group (InstallShield), 1238-1239
Application state, 861
Application tab (My Project), 34-39
applying
annotations, 805
Async pattern, 1111
brush properties, 758
collections
COM
P/Invoke, 1200
cookies, 863
CopyToDataTable method, 624-626
CreateInstance, 154
CSS, 856
DrawingBrush, 768
enumerations, 315
Expression Blend, 775
fields, 227
highlights, 805
initializers, objects, 558-559
logs, SQL, 613
multiple transforms, 782
My.Application property, 478-482
Object Browser tool, 394
projects, Visual Studio 2010, 16-27
RadialGradientBrush, 762
reserved words as keywords, 72
streams
memory, 466
strings, 467
tasks, parallel computing, 1072-1080
Visual Studio 2012 Express for Web, 932
With..End With statements, 176-177
architecture
collections, 394
CPUs, 44
interoperability between COM/.NET, 86
LINQ, 554
archives (Zip)
support, 8
AreEqual method, 1341
AreNotEqual method, 1341
AreSame method, 1341
ArgumentException, 359, 459, 614
ArgumentNullException, 218-219, 223, 459, 615
arguments
command-line, retrieving, 482
empty strings, passing, 221
lambda expressions, 518
nullable, 241
stringToPrint, 238
arrays
collections, comparing, 148-149
initializing, 150
iterators, 169
passing, 239
rules, 267
support, 8
zero-based, 149
AsDataView method, 623
AsNoTracking method, 654
AsParallel, invoking, 1097
ASP.NET, 6
Administration tool, 879
applications, 851
creating with Visual Basic 2012, 864-862
handlers in, 8
page requests, 852
application domains, 1145-1147
Base Addresses for, 47
BCL (GAC), 1223
CLS, 264
COM, registering for interoperability, 1197
GAC, 84
installing/uninstalling, 1223-1224
signing with strong names, 1224-1226
inspecting, 1161
locations, 1144
MsCorlib.dll, 6
My.Application property, retrieving information, 478-479
Portable Class Library, 441
references, 84
reflection, 1158. See also reflection
invoking dynamic code, 1169-1171
retrieving information from, 1160-1162
serialization, generating, 48
sharing, 853
signing, 1145
types, 1144
versions, 1144
Assembly Information dialog box, 77
Assembly Information window (My Project), 35-36
Assembly name field (My Project), 34
Assertion dialog box, 196
assertions, contracts, 1355
Assert method, 194
Asset class, methods, 1341
assigning
field inlines, 228
identifiers, 72
images to PictureBoxes, 499
scope, 234
structures to variables, 308
styles to buttons, 771
variables, 45
associations, 593
assumptions, contracts, 1355
asynchronous calls, 1109
asynchronous programming, 466, 1103
Async pattern, 1107-1112, 1120-1122. See also Async pattern
exception handling, 1127
event-based asynchrony, 1116-1120
input/output (I/O), 8
I/O file operations (.NET 4.5), 1137-1141
overview of, 1104
requests, 853
synchronous approach to, 1112-1116
task-based asynchrony, 1127-1131
Asynchronous Programming Model. See APM, 1106-1107
asynchronous programming, 1120-1122
documentation, 1126
exception handling, 1127
progress, reporting, 1134-1136
AllowPartiallyTrustedCallers, 1154
assemblies, 1145
CallerMemberName, 1179
ChangeInterceptor, 1032
Column, 664
ComVisible, 1198
connectionString, 660
customizing, 428
Data Annotations, 664
DebuggerStepperBoundary, 202-203
DebuggerVisualizer, 202
DocumentProperties, 1187
Flags, 320
ForeignKey, 664
getting/setting, 456
inheritance, defining, 1187
Just My Code, 183
Key, 664
MaxLength, 664
MinLength, 664
parameters, types, 1185
QueryInterceptor, 1030
security, 1151
SecurityCritical, 1151
SecurityRules, 1151
SecuritySafeCritical, 1151
SecurityTransparent, 1151,
StringLength, 664
Table, 664
VBFixedString, 1205
Visual Basic 2012 projects, 69-70
WebGet, 1028
WebInvoke, 1028
XmlRoot, 1045
audio, 77
playing, 485
Authenticode certificate, 1255
auto-completing code, 26
auto-generating
complex types/function imports, 657
partial classes, 248
XAML code for details, 827
auto-implementing properties, 229-231
Autos window, 192
availability
Async patterns, 1111
For..Each, 168
Average method, 519
avoiding
ambiguities with local variables, 228-229
boxing/unboxing, 115
awaiters, customizing, 1141
Await keyword, 1109
asynchronous programming, 1120-1122
Azure. See Windows Azure
Background property, 717
backgrounds
compilers, 43
images (Windows Phone), 986
BAML (Binary Application Markup Language), 844
Base Addresses for assemblies, 47
BaseClassDemo class, 340
contra variance, 536
Base Class Library. See BCL
BasicHttpBinding, 1005
BasicHttpContextBinding, 1005
BCL (Base Class Library), 2, 5-6
assemblies (GAC), 1223
documentation, 55
generics, customizing types, 368
namespaces, 284
reference types, 105
Silverlight, 897
viewing, 57
BeginRead method, 464
BeginWrite method, 464
behavior
extension methods, 521
members, 29
Binary Application Markup Language. See BAML, 844
binary files
reading, 465
writing, 465
BinaryFormatter class, 1036
binary operators, invoking AsParallel, 1097
Binary Rewriter, 1351
BinarySearch method, 153
binary serialization, 1036-1038
binding. See also late binding, 45, 115, 1176
ABC properties, 992
assemblies, 1144
data-binding. See data-binding
WCF, 1005
Binding markup extension, 812-813
Bing, searching, 972
BingMapsDirectionsTask, 967
BitArray collection, 401
bit flags, enumeration values as, 320
BitmapCacheBrush, 758, 769-771
Bitvector32 collection, 402-403
blocks
catch, 45
Class..End Class, 348
Interface..End Interface, 348
Namespace..End Namespace, 284, 288
nested Try..Catch..Finally, 217-218
Structure..End Structure, 305
Try..Catch..Finally, 1127
handling exceptions, 209
Boolean keyword, 95
Boolean user-level settings, 491
Boolean values, operators, 164
Border control, 727
BoundedCapacity property, 1091
boxing types, converting reference/value, 113
breakpoints
XAML, placing in, 926
Breakpoints window, 184
Browse command, 492
Browser Applications (WPF), 721-724
Browser for a Destination dialog box, 1238
brushes
properties, applying to, 758
bubbling strategy, 708
bug fixes, return types, 515
build engines, 7
building
applications
.NET Framework, 2. See also .NET Framework
Visual Studio 2012 Express for Web, 932
CLS-compliant structures, 314
code snippets, 1281
InstallShield packages, 1244
MSBuild.exe, 40
packages, Visual Studio 2012 extensibility, 1289-1299
projects, Silverlight applications, 936-942
build processes, viewing results, 31
built-in extension methods, 519
BulletedList control, 859
buttons, assigning styles, 771
Byte keyword, 95
caches
InstallShield, 1237
troubleshooting DLLs, 1221-1222
CalculateDiscount method, 354
CalculatePerimeter method, 1349
calculating
arithmetic operators, 156. See also arithmetic operators, 155-157
Calendar control, 728-729, 859
callbacks, asynchronous programming, 1116-1120
Caller Information assemblies, 1177-1180
CallerMemberName attribute, 1179
calls
asynchronous, 1109
from COM objects WPF, 1196
methods, hierarchies, 60
synchronous, 1108
Win32 API calls, references to, 1206
cameras, capturing Silverlight applications, 904
canceling
PLINQ queries, 870
CancellationTokenSource class, 1077, 1134
Cancel property, 496
CanFilter property, 832
CanGoBack property, 965
CanGoForward property, 965
CanGroup property, 832
CannotUnloadAppDomainException, 1147
CanRead method, 464
CanSeek method, 464
CanSort property, 832
CanUserAddRows property, 818
CanUserRemoveRows property, 818
CanUserReorderColumns property, 818
CanUserResizeColumns property, 818
CanUserResizeRows property, 818
CanUserSortColumns property, 818
Canvas panel, 714
CanWrite method, 464
Capacity property, 394
capturing cameras (Silverlight applications), 904
CAS (Code Access Security), 1148
migrating old CAS-based code, 1155
Cascade Style Sheets. See CSS, 856
case sensitivity
Select Case statements, 174-175
Visual Basic 2012, 72
XML comments, 1213
Cassini Web Server, 852
Cast method, 519
catch blocks, 45
catching
exceptions, 217
COM, 1195
Catch statement, 210
CBool function, 121
CByte function, 121
CChar function, 121
CDate function, 121
CDbl function, 121
certificates
ClickOnce, 1255
X.509, 926
ChangeConflictException, 616
ChangeExtension method, 454
ChangeInterceptor attribute, 1032
change interceptors, 1032
Change Members Format command, 424
channels, RSS, 15
characters
LINQ queries, 552
literal type, 98
Char keyword, 95
CheckBox control, 729-730, 859
CheckBoxList control, 859
CheckMailAddress method, 381
CIL (Common Intermediate Language), 5
CInt function, 121
Class..End Class statements, 225, 348
classes, 225
abstract, 336
CLS, 337
code, 427
implementing interfaces, 428
inheritance, 337
AdHost, 1194
AppDomain, 1146
Application, members, 720
ApplicationBar, Windows Phone applications (apps), 982
ApplicationDeployment, 1257
Asset, methods, 1341
BaseClassDemo, 340
BinaryFormatter, 1036
CancellationTokenSource, 1077, 1134
CompositeType, 997
ConcurrentExclusiveSchedulerPair, 852
Contacts, 358
contra variance, 536
control properties, 428
CultureInfo, 842
CustomConverter, 839
DataContractSerializer, 1050
DataServiceContext, 1026
DbSet, 653
diagrams
adding, 431
files, 425
Domain Service Class, adding, 913-916
DownloadStringCompletedEventArgs, 1106
DropCreateDatabaseIfModelChanges, 665
File, 461
FileStream, 68
generating, 437
generics, defining, 370
ILGenerator, 1175
inheritance, preventing, 335
interfaces, defining, 348
Iterator, implementing, 419-422
LastNameChangedEventArgs, 388
libraries, 226
mapping, 1335
methods
executing actions with, 235-247
modules, comparing, 303
Monitor, synchronization, 1065
namespaces, 284
NavigationService, 965
NestedClass, 227
NetworkStream, 474
ObjectContext, 916
ObservableCollectionHelper, 503
Page, 856
Parallel, 1071
ParallelEnumerable, 1097
parallelism, 1071
ParallelLoopState, 1085
ParallelOptions, 1071
Portable Class Libraries, 7, 440-451
ProcessStartInfo, 1058
proxy, WCF, 1002
requirements for COM exposure, 1197
ResurrectDemo, 279
rules, 266
SoapFormatter, 1039
SqlCommand, 541
Stream, methods, 1138
StreamWriter, 464
Style, 771
support, 301
System.Attribute, 69
System.Boolean, 95
System.Byte, 95
System.Char, 95
System.Collections, 394
System.Convert, methods, 123
System.Decimal, 95
System.Delegate, 380
System.Diagnostics.Process, 1058
System.Double, 95
System.Enum, applying methods from, 316-319
System.Exception, 105, 209, 214-216, 344
System.GC, 270
System.Guid, 95
System.Int16, 95
System.Int32, 95
System.Int64, 95
System.IntPtr, 95
System.IO.DirectoryInfo, 458-459
System.IO.DriveInfo, 459
System.Math, 157
System.Numerics.BigInteger, 95
methods, 92
naming, 91
WPF, 696
System.SByte, 95
System.SerializableAttribute, 70
System.Single, 95
System.Threading.ThreadPool, 1062
System.TimeZone, 95
System.Unt16, 95
System.Unt32, 95
System.Unt64, 95
System.Windows.ContentElement, 57
TaskFactory, 1071
TaskScheduler, 1071
Test, 227
TextRange, 807
Trace, 195
Visual Basic 2012 projects, 64
Visual Studio Class Designer, 424-432
Window, 928
XamlServices, 1048
XDocument, members, 674
XmlSerialization, 1043
XmlSerializer, 48
XmlWriterTraceListener, 196-197
XpsDocument, 808
Class Library, 226
clauses
Into, 570
AddressOf, 381
Aggregate, 570
Handles, 385
OrderBy, 916
Clear method, 396, 404, 410, 484
ClickOnce, 1229
applications
overview of, 1246
certificates, 1255
Registration-Free COM, 1258-1259
security, 1255
ClientBin, 899
clients
applications
ClickOnce, 1247
exception handling, 220
formatting, 1002
instances, 606
validating, 1004
WCF, configuring, 1004
Clipboard property, 482
clones, searching code, 1310, 1317-1319
CloudBerry Explorer for Windows Azure, 932
settings, 946
Windows Azure, 930. See also Windows Azure
Cloud Storage Studio (Cerebrata), 932
CLR (Common Language Runtime), 2-5, 1191
exceptions, 207
Finalize method, 272
finalizers, 110
LINQ, 552
LINQ to SQL, 588
managed code, writing, 4
metadata, 1158
namespaces, 284
objects, invoking destructors, 270
POCO, 640
programming languages, 7
Stack, comparing reference types/value types, 106-108
structures, allocating memory, 309
value types, 92
WPF, 696
CLS (Common Language Specification), 72, 263-267
abstract classes, 337
assemblies, 264
AssemblyInfo.vb file, 77
Code Analysis, 1310
inheritance, 327
namespaces, 295
rules
arrays, 267
classes, 266
methods, 267
properties, 267
structures, 314
types, 264
CLSCompliant attribute, 70, 336, 1182
CObj function, 121
code. See also languages; programming
abstract classes, 427
analysis, 264
attributes, 1181
auto-complete, 26
clones, searching, 1310, 1317-1319
COM
components, 87
objects, 1195
compiling, 5
components, applying in code, 87
conditional code blocks, 172-175
documentation, 1207. See also XML comments
creating at runtime, 1147
editors
creating projects, 24
placing breakpoints in, 51
extension methods, customizing, 521-523
files
Visual Basic 2012 projects, 72-83
Visual Studio 2012 packages, 1293
Imports directives, positioning, 293
iterators, benefits of, 415-417
lambda expressions, 528
managed, writing, 4
MediaElement control, 797
Microsoft code analysis rules, 1311
models, Code First approach, 659-660
MSBuild.exe, localization, 847
MSDN Code Gallery, 1303
old CAS-based code, migrating from, 1155
on-the-fly, compiling, 1297
opposed, 1175
refactoring, 1349
resources, accessing by name, 500
reusing, 368
samples, searching, 21
snippets
deploying, 1300
SQL, database objects, 655
System.Reflection.Emit namespace, 1171-1177
testing, 1337
applying Code Contracts, 1350-1355
tools, Visual Basic 2012, 1358
unmanaged
COM, 1199
writing, 4
Visual Basic 2012
XAML, 700
zooming, 25
Code Access Security. See CAS, 1148, 1155
Code Analysis, 1309, 1310-1315. See also analyzing
codebases, assemblies, 1144
Code Clone Detection, 1310, 1317-1319
Code Contracts, applying, 1350-1355
Code Coverage, enabling, 1343
databases, generating, 660-663
migrating, 665
WCF Data Services, 1016
Code Gallery, 21
Result tool window, 1317
CodeRush Xpress, 1358
Code Snippet Editor, 1358
Code Snippet Manager, 1278
code tag (XML comments), 1214
coercion, 244
CollectionChanged event, 816
collections, 393
architecture, 394
BitArray, 401
concurrent, 413
customizing, 413
debugging, 405
Dictionary (Of TKey, TValue), 407
generics
optimizing, 395
serialization, 1049
HybridDictionary, 400
in-memory, querying, 558
iterators, 169, 415. See also iterators
ListDictionary, 399
NameValueCollection, 401
ObservableCollection (Of T), 408-410, 814-818
OrderedDictionary, 399
Queue (Of T), 412
ReadOnlyCollection (Of T), 406-407
SortedDictionary (Of TKey, TValue), 408
SortedList, 400
Stack, 398
Stack (Of T), 412
StringCollection, 400
StringDictionary, 400
CollectionViewSource objects, 830
Collect method, 279
colors
Microsoft Design Style, 11
Start Page, 12
Color Theme drop-down box, 14
Color Theme Editor (Visual Studio 2012), 14
Column attribute, 664
ColumnGap property, 803
columns
adding, 710
design, 823
foreign keys, support, 633
tabular data forms, formatting, 819-825
COM (Component Object Model), 1191
assemblies, registering for interoperability, 1197
Automation, 926
components, applying in code, 87
exceptions, catching, 1195
libraries, adding references, 85-86
objects
P/Invoke, 1200
converting types to unmanaged, 1202-1203
handling exceptions, 1205-1206
Registration-Free (ClickOnce), 1258-1259
unmanaged code, 1199
Win32 API calls, references to, 1206
command-line
arguments, retrieving, 482
tools, 7
commands. See also functions
Add, 424
Add Reference, 84
Adjust Shapes Width, 424
Browse, 492
Change Members Format, 424
Export Diagram as Image, 424
Generate Database from Model, 657
Generate Other, 434
Go to Definition, 58
Group Members, 424
Hit Count, 185
Insert breakpoint, 51
Install ApplicationName onto This Computer, 924
Layout Diagram, 424
New Event Handler, 706
New Item, 30
Run to Cursor, 181
Settings, 433
Show Data Sources, 917
Step Into, 181
Step Out, 181
Step Over, 181
When Hit, 186
Zoom, 424
Data Annotations, Code First approach, 663-665
resources, 80
XML, 1207
generating Help files, 1220
Common Intermediate Language. See CIL, 5
Common Language Runtime. See CLR
Common Language Specification. See CLS
objects, 90
Compare method, 127
comparing
classes/modules, 303
reference types/value types, 106-111
compatibility
Entity Framework (ADO.NET), 668-669
Windows Forms, 75
compilers, backgrounds, 43
compiling, 5
Help files, generating, 1220
multicore JIT compilation, 853
namespaces, 6
on-the-fly code, 1297
Output window, 33
types, local type inference, 512
Visual Basic Compiler (vbc.exe), 2
complex objects, generating, 437-439
complex types, auto-generating, 657
compliance, CLS, 264. See also CLS
Component Object Model. See COM
components
CompositeType class, 997
compressing data with streams, 467-474
Compute Emulator, 943
ComVisible attribute, 1198
concatenating
concatenation operators, 163, 583
Concat method, 519
Conceptual Schema Definition Language. See CSDL, 634
concurrency
concurrent collections, 413, 1087-1092
concurrent operations, managing, 1129
optimistic, 616
ConcurrentBag (Of T), 1087
ConcurrentDictionary (Of TKey, TValue), 1090-1092
ConcurrentExclusiveSchedulerPair class, 852
ConcurrentQueue (Of T), 1089
ConcurrentStack (Of T), 1089
conditional code blocks, 172-175
conditional exception handling, 222. See also exceptions
conditioning
attribute inheritance, 1188
conditions
contracts
debugging, 187
warnings, 45
configuration files
Configuration Manager, 42
Advanced Compiler Settings window, 46
clients, WCF, 1004
Code Analysis, 1312
contracts, properties, 1350-1351
Data Source Configuration Wizard, 544
Debug configuration, 49
Debug configuration (Visual Studio 2012), 40-43
Domain Service Class, 913
IIS servers, 994
InstallShield, 1229. See also InstallShield
item properties, 31
out-of-browser, enabling, 923
project-level default Imports directives, 294
Release configuration (Visual Studio 2012), 40-43
roles, 881
security, ASP.NET applications, 879-882
settings, 490
toolbars, 1271
View Windows Settings (My Project), 36-39
Visual Studio 2012 projects, 1289-1299
WCF Service Configuration Editor, 1009-1010
Windows Azure subscriptions, 944
conflicts, avoiding with different namespaces, 287
connecting
ADO.NET, 541
EDMs, 632
LINQ to DataSets, 622
LINQ to SQL, 618
strings, writing, 619
ConnectionSettingsTask, 967, 970
connectionString attribute, 660
Console
Application project template, 22
applications, 24
Entity Framework 5, 658
LINQ to DataSets, 622
value types, applying, 96
ConsoleTraceListener, 196, 200
Console.Writeline statement, 181, 186
customizing, 48
constraints
methods, 373
multiple, 374
New keyword, 373
types, 373
defaults, viewing, 253
modules, 303
private, 257
types, comparing reference types/value, 110
consuming
Contacts class, 358
Contains method, 396, 410, 519
ContainsAudio method, 484
ContainsData method, 484
ContainsFileDropList method, 484
ContainsImage method, 484
ContainsText method, 484
content, reproduction, 901
ContentControl control, 726-727
ContentFrame_Navigated event handlers, 910
Content property, 726
context, objects, 645
Context state, 579
continuation
contracts
ABC properties, 992
Code Contracts, applying, 1350-1355
events, 1355
invariants, 1354
properties, configuring, 1350-1351
WCF, 993
contra variance, 536-537. See also covariance, 535
AdRotator, 859
Ajax, 854
BulletedList, 859
Button, 859
Calendar, 859
CheckBox, 859
CheckBoxList, 859
data-binding, WCF RIA Services, 916-919
DataGrid, data-binding, 814-818
DataList, 859
DataPager, 919
DetailsView, 859
DocumentViewer, 808
DropDownList, 859
FileUpload, 859
GridView, 859
HiddenField, 859
HtmlAnchor, 858
HtmlButton, 858
HtmlForm, 858
HtmlGenericControl, 858
HtmlInputButton, 858
HtmlInputCheckBox, 858
HtmlInputFile, 858
HtmlInputHidden, 858
HtmlInputImage, 858
HtmlInputRadioButton, 858
HtmlInputText, 858
HtmlTable, 858
HtmlTableCell, 858
HtmlTableRow, 858
HtmlTextArea, 858
HyperLink, 859
ImageButton, 859
ImageMap, 859
Label, 859
LinkButton, 859
ListBox, 859
managing, 702
MultiView, 859
navigation, adding, 874
Panel, 859
PictureBox, 499
PivotViewer, filtering data with, 920-923
properties, binding, 813
RadioButton, 859
RadioButtonList, 859
RangeValidator, 859
RequiredFieldValidator, 859
resizing, 711
servers, 858
Silverlight applications, 726, 897-900
Substitution, 859
Table, 859
View, 859
VirtualizingStackPanel, 714
WindowsFormsHost, 1196
Wizard, 859
WPF, 725
Border, 727
Button, 728
DataGrid, 731
DatePicker, 733
DocumentViewer, 733
Expander, 734
GroupBox, 735
Image, 736
Label, 736
ListBox, 736
ListView, 738
MediaElement, 739
Menu, 740
PasswordBox, 741
ProgressBar, 743
RadioButton, 744
Rectangle, 745
ScrollViewer, 746
Separator, 746
StatusBar, 747
TabControl, 748
TextBlock, 749
TextBox, 750
ToolBar, 750
TreeView, 751
WindowsFormsHost, 753
XAML, adding, 701
Xml, 859
conventions
Code First, 663
CType, 314
naming, 8
Code Analysis, 1314
identifiers, 72
interfaces, 355
value types, 94
Pascal, 355
conversion operators, 120-125, 572-574
Converter property, 840
between decimal and binary numbers, 160-162
implicit conversions, 45
IValueConverter interfaces, implementing, between reference types/value types, 111-119
types to unmanaged code, 1202-1203
ConvertTimeBySystemZoneId method, 147
cookies, applying, 863
copying
objects with serialization, 1038
strings, 131
CopyToAsync method, 1138
CopyToDataTable method, applying, 624-626
Counter property, 343
Count property, 410
covariance, 535
CPUs (central processing units), architecture, 44
Create Directory for Solution check box, 18
CreateInstance, applying, 154
create/read/update/delete. See CRUD, 913, 1014
cref tag (XML comments), 1214
CRUD (create/read/update/delete), 913, 1014
CSByte function, 121
CSDL (Conceptual Schema Definition Language), 634
CShort function, 121
CSng function, 121
CSS (Cascade Style Sheets), 856
CStr function, 121
c tag (XML comments), 1214
.ctor method, 216
CUInt function, 121
CULong function, 121
CultureInfo class, 842
Culture property, 479
cultures, My.Application property, 479-480
Current property, 720
CurrentCell property, 818
CurrentDeployment property, 1257
CurrentItem property, 832
CurrentPhaseNumber property, 1080
CurrentPosition property, 832
CurrentPrincipal method, 500
CUShort function, 121
CustomConverter class, 839
Custom Event keywords combination, 389
applications (Windows Phone), 985-987
attributes, 428
awaiters, implementing, 1141
collections, 413
constants, 48
dates, formatting, 138
Debug configurations, 41
debugger visualizers, 193
exceptions, inheritance, 344-346
extensions
libraries, testing, 524
formats (symbols), 130
generic types, 368
InstallShield, 1244
IntelliTrace, 1329
item templates, 1264
object serialization, 1040-1042
operators, structures, 310-314
out-of-browser applications, 924
prerequisites, 1252
properties, deploying packages, 1301
Release configurations, 41
RSS Feeds news channel, 14
tasks, scheduling, 1070
templates, 519
text, 898
themes, 14
toolboxes, 1275
types
exposing, 232
local type inference, 513
selecting, 111
value types, 103
Visual Studio 2012, 1267-1270, 1289-1299
Dark theme (Visual Studio 2012), 14
Data Annotations, Code First approach, 663-665
Database First, 657
databases. See also LINQ
Code First approach, generating, 660-663
EDMs, formatting from existing, 631
LINQ to DataSets, 622
LINQ to SQL, accessing, 589
objects, adding, 655
products, saving, 607
SQL Server 2012 (Local DB), 882
data-binding, 811
ASP.NET applications, creating with Visual Basic 2012, 864-862
controls, WCF RIA Services, 916-919
modes, 813
Visual Basic 2012, 814
data centers, 929
DataContext.Log property, 613
DataContract, 993
DataContractSerializer class, 1050
data controls, adding, 870-873
DataGrid control, 731, 814-818
DataList control, 859
data models, adding, 868
data operations, executing, 660-663
DataPager control, 919
Data property, 214
data providers, ADO.NET, 540-541
DataServiceContext class, 1026
DataServiceException, 1031
Data Services (WCF)
IIS, deploying, 1021
querying data, 1026
query interceptors, applying, 1030-1033
server-driving paging, 1033-1034
DataSets, 539
data-binding to, 834
LINQ to, 621
Data Source Configuration Wizard, 544
data sources
adding (Silverlight applications), 912-913
Show Data Sources command, 917
Data Source window, 820
data types, 89
conditional code blocks, 172-175
converting between reference types/value, 111-119
objects, 90
concatenation, 163
customizing, 103
differences between reference types/value types, 106-111
optimizing, 101
With..End With statements, 176-177
data validations, customizing, 614-616
DatePicker control, 733
dates
strings, converting to, 138-139
instantiating, 645
dbentityvalidationexception, 651
DbSet class, 653
DbUpdateConcurrencyException, 649
Deactivated event, 509
deallocating memory, 110. See also allocating
Debug configuration, 40-43, 49
DebuggerBrowsable attribute, 202-203
DebuggerDisplay attribute, 202-203
DebuggerHidden attribute, 183
DebuggerNonUserCode attribute, 183
DebuggerStepperBoundary attribute, 202-203
DebuggerStepThrough attribute, 183
DebuggerTypeProxy attribute, 202, 205
DebuggerVisualizer attribute, 202
debugging
applications
Visual Basic 2012, 50
collections, 405
debug information, generating, 47
Edit and Continue feature, 54-55
Output window, 33
tasks, 1086
Visual Basic 2012, 179
applying breakpoints/trace points, 184-187
Autos window, 192
Just My Code debugging, 182-184
Locals window, 187
Mixed Mode debugging, 182
preparing examples for, 179-180
Windows Phone applications, 963-964
XAML (Silverlight applications), 926-927
Debug menu (Visual Studio 2012), 181
Decimal keyword, 95
decimal numbers, converting, 160-162
declarative mode, XAML, 703
declaring
anonymous types, 524
constants, 176
controls, 726
events, 386
instances, LINQ to SQL, 600
interfaces, media players, 796
objects, WithEvents keyword, 384-385
properties, 64
reference types, 110
variables, storing value types, 96
decompressing streams, 468
deep copy
serialization, 1038
types, converting between reference/value, 115-118
Default.Aspx pages, replacing, 950
default constructors, viewing, 253
DefaultIfEmpty method, 519
Default keyword, 233
Default mode, 813
DefaultTraceListener, 196
default types, selecting, 493
default values
for optional arguments, 241
thread pools, 1063
deferred execution, LINQ, 565-568
defining
complex code documentation, 1212-1213
default properties, 233
generics, 370
inheritance, 1187
media players, 796
multiple modules, 302
resources, 77
settings, 492
Settings property, 83
styles, 771
views
models, 446
Silverlight applications, 449
WPF, 448
DeflateStream object, 467
Delegate keyword, 380
delegates, 379
generating, 437
generics, defining, 370
namespaces, 284
ParameterizedThreadStart, 1061
relaxed, 526
Delete method, 457
DeleteObject method, 1025
delete operations
databases, 542
DataSets, 547
Entity Framework (ADO.NET), 647-648
LINQ to SQL, 609
directories, 457
integer overflow checks, 47
toolbars, 1270
DelimitedListTraceListener, 196-197
demo projects, creating (Windows Azure), 933-944
Dependency Graphs, generating, 1334-1335
deploying
1-Click deployment, 884
add-ins, 1300
applications
ClickOnce, 1229
Registration-Free COM, 1258-1259
security, 1255
code snippets, 1300
InstallShield. See also InstallShield
overview, 1231
packages, 1244
My.Application property, 480-482
portable libraries, 451
Silverlight applications, 899
Visual Studio 2012 extensibility, 1299-1302
WCF Data Services to IIS, 1021
Windows Azure, viewing status, 947
Windows Installer, 1230
XBAP, 724
Deployment Label (Windows Azure), 947
Deploy Without PIAs feature, enabling, 88
Dequeue method, 398
deriving
classes, Visual Studio Class Designer, 429-431
members, overriding, 334
Descendants method, 675
deserialization
binary files, 1036
events, 1047
design
Code Analysis, 1312
columns, 823
DataSets, 544
EDMs, 640
Installation Requirements (InstallShield), 1234
LINQ to SQL, 590
Resources Designer, 497
settings, 490
templates, customizing, 519
tools
adding columns, 710
XAML, 699
Visual Studio Class Designer, 424-432
XML schemas, 689
desktop applications (apps), 8
Transparency Level 2, 1151
destructors
implementing, 275
invoking, 270
DetailsView control, 859
Developer Center (Windows Phone), accessing, 987
Developer Portal (Windows Azure), registering, 931
development
Windows 8 (WPF), 695
Device Emulator, 957
diagnostics (Visual Basic 2012 tools), 1359. See also troubleshooting
diagrams
classes
adding, 431
files, 425
exporting, 432
formatting, 431
dialog boxes
Add Service Reference, 1002
Advanced Compile Options, 44
Assembly Information, 77
Assertion, 196
Browser for a Destination, 1238
Export Diagram as Image, 424, 432
Extension and Updates, 1302
External Tools, 1268
Infer XML Schema Set from XML, 687
Manage NuGet Packages, 658
New Interface, 425
Options, 513
Prerequisites, 1252
Publish Web, 887
Visual Studio Output Selector, 1236
Dictionary (Of TKey, TValue) collection, 407
Dim keyword, 308
directives
Imports, 17
adding, 286
multithreading, 1060
System.Globalization, 843
Visual Basic 2012 projects, 68-69
Option Infer, 513
Region (Visual Basic 2012 projects), 69
directories
deleting, 457
exceptions, handling, 459
System.IO.Directory class, 455-458
System.IO.DirectoryInfo class, 458-459
DirectoryNotFoundException, 459
direct routing strategy, 708
DirectX (WPF), 696
disabling
warnings, 44
disconnected modes (ADO.NET), 541
Dispatcher property, 720
DispatcherUnhandledException, 509
Dispose interface, implementing, 273-278
Dispose method, 271, 275-276, 347, 404
Distinct method, 519
Divide method, 533
division (/) operator, 155, 313
DLLs (dynamic link libraries), 2
Base Addresses for assemblies, 47
Interop.AssemblyName.dll, 86
Interop.WMPLib.dll, 87
Microsoft Core Library (MsCorlib.dll), 6
System.ServiceModel.dll, 6
WMPLib.dll, 86
DoCancel method, 873
docking tool windows, 27
DockPanel panel, 714
documentation
Async pattern, 1126
code, 1207. See also XML comments
permission requirements, 1219
Document Outline window, 704
DocumentProperties attribute, 1187
documents
flow
implementing, 799
viewing, 803
spell check, implementing, 808
WPF, 793
XML, formatting, 672
Document Type Definition. See DTD, 672
DocumentViewer control, 733, 808
DomainDataSource control, 919-921
domains
applications, assemblies, 1145-1147
Domain Service Class, adding, 913-916
DoSomething method, 229
Double keyword, 95
DownloadFile method, 487
downloading
InstallShield, 1231
IronPython, 6
subscriptions (Windows Azure), 945
templates, 19
Visual Studio 2012 tools (Windows Azure), 931-932
DownloadStringCompletedEventArgs class, 1106
DownloadString method, 1115
drag’n’drop data-binding, 818-840
Silverlight applications, 916-919
drives
System.IO.DriveInfo class, 459
Windows Azure, 931
DropCreateDatabaseIfModelChanges class, 665
DropDownList control, 859
DTD (Document Type Definition), 672
duplicate catch blocks, 45
dynamic code
reflection, running, 1169-1171
runtime, creating at, 1147
dynamic link libraries. See DLLs
DynamicResource, 772
EAP (Event-based Asynchronous Pattern), 1104-1106
early binding, 115
Edit and Continue feature, 54-55
Edit Breakpoints Labels window, 184
editing
breakpoints, 184
code, placing breakpoints in, 51
code editors
Color Theme Editor (Visual Studio 2012), 14
localization, 848
root namespaces, 292
spell check, implementing, 808
Visual Studio 2012 built-in image editors, 498
WCF Service Configuration Editor, 1009-1010
EDMs (Entity Data Models), 630
adding, 868
LINQ to SQL, exposing, 1001
Navigation Properties, 640
Open Data Protocol (OData), 1015
queries with LINQ to Entities, 652-653
serialization, 1054
Silverlight applications, 912
viewing, 820
efficiency, optimizing structures, 310
ElementAt method, 519
ElementAtOrDefault method, 519
Element method, 674
ElementName property, 812
elements
angles, modifying, 780
Ellipse, 733
moving, 781
resizing, 780
rotating, 780
UI
adding to Silverlight applications, 897
Logical Tree, 704
elevated privileges (Visual Studio 2012), 933
Ellipse element, 733
embedding expressions, applying, 682-685
Embed Interop Types property, 87
empty strings
checking for, 128
passing, 221
Empty Web Application template (ASP.NET), 855
Enable Application Framework group (My Project), 39
enabling
Code Coverage, 1343
Deploy Without PIAs feature, 88
InstallShield, 1231
Just My Code debugging, 183
media players, content reproduction, 901
optimization, 47
out-of-browser settings, 923
spell check, 808
tracing, 1010
View All Files, 638
Visual Studio Class Designer, 424-425
XML comments, 1209
encapsulating P/Invoke, 1201-1202
endpoints (WCF services), 992
EndRead method, 464
EndWrite method, 1107
entities
LINQ to SQL
delete operations, 609
serialization, 1054
SQL, applying against, 617
EntityClient, 540
Entity Data Models. See EDMs
Entity Data Model Wizard, 630
Entity Framework (ADO.NET), 629
Code First approach, 657
downloading additions to, 658
LINQ to Entities queries, 652-653
instantiating, 645
optimistic concurrency, handling, 648-650
stored procedures, mapping, 654-657
update operations, 648
applying, 315
generating, 437
namespaces, 284
RefreshMode members, 616
return methods, applying as from methods, 319-320
System.Enum class, applying methods from, 316-319
values as bit flags, 320
environments
instrumentation, debugging, 180-192
My.Application property, 480-482
variables, retrieving, 481
Environment tab, 14
Environment Variables element (InstallShield), 1242
equality (=) operator, 126, 164, 313, 570
ErrorCode property, 1205
ErrorDialog property, 1058
Error Lists, 24
projects, compiling, 40
Code Analysis, 1314
correction options, 112
FormatException, 100
handling, 207
messages, 30
Microsoft code analysis rules, 1313
type conversion, 103
warnings, treating as, 44
evaluating expressions, 190
event, Navigated, 965
Event-based Asynchronous Pattern. See EAP, 1104-1106
event-based asynchrony, asynchronous programming, 1116-1120
Event keyword, 386
EventLogTraceListener, 196
events, 379
Activated, 509
CollectionChanged, 816
contracts, 1355
Deactivated, 509
deserialization, 1047
DispatcherUnhandledException, 509
Exit, 510
FragmentNavigation, 510
garbage collection, registering, 281
ContentFrame_Navigated event handlers, 910
Init, 856
Load, 856
LoadCompleted, 510
MediaFailed, 798
Navigated, 510
NavigationProcess, 510
NetworkAvailabilityChanged, 509
NonSerialized, 1042
pages, 856
PreRender, 856
SessionEnding, 510
SettingChanging, 495
SettingsLoaded, 495
SettingsSaving, 495
ShutDown, 509
Silverlight applications, handling, 899
StartupNextInstance, 509
TextChanged, 857
UnhandledException, 509
Windows Event Log, 199
WPF
handling, 694
EventSchemaTraceListener, 196
Event viewer, 199
examples
Visual Basic 2012, debugging, 179-180
example tag (XML comments), 1214
Excel (Microsoft), exporting code metrics to, 1317
AggregateException, 1076
AppDomainUnloadedException, 1147
ArgumentException, 359, 459, 614
ArgumentNullException, 218-219, 223, 459, 615
CannotUnloadAppDomainException, 1147
ChangeConflictException, 616
COM, catching, 1195
DataServiceException, 1031
DbEntityValidationException, 651
DbUpdateConcurrencyException, 649
directories, handling, 459
DirectoryNotFoundException, 459
DispatcherUnhandledException, 509
Async pattern, 1127
files, 463
IndexOutOfRange, 153, 209, 626
inheritance, customizing, 344-346
InvalidCastException, 123-125, 373, 626
InvalidOperationException, 252, 584, 612, 1091
MethodAccessException, 1152
MissingLastNameException, 345-346
naming conventions, 345
NotImplementException, 436
NullReferenceException, 626
OperationCanceledException, 1078, 1134
pathnames, handling, 459
PathTooLongException, 459
rethrowing, 219
SecurityException, 463
SEHException, 1205
serialization, handling, 1037
SerializationException, 1037
SqlClient.SqlException, 606
System.Exception class, 209
System.Net.Exception, 488
System.Security.SecurityException, 1150
task-specific, 220
Try..Catch..Finally blocks, 209
UnauthorizedAccessException, 459
UnhandledException, 509
variables, catching without, 223-224
Visual Basic 6 migration, 209
exception tag (XML comments), 1214
Except method, 519
executable (.EXE) files, profiling, 1327
ExecuteAssembly method, 1146
ExecuteCommand method, 617
Execute (Of T) method, 1026
ExecuteReader method, 543
executing
applications
debugging, 49
managing, 4
deferred execution (LINQ), 565-568
processes, 5
existing settings, importing, 1273
existing toolbars, customizing, 1268
Exit event, 510
exiting
iterators, 418
Exit Try statements, 218
Expander control, 734
explicit bounds, arrays, 150
exponentiation (^) operator, 155
Export Diagram as Image dialog box, 424, 432
exporting
code metrics to Excel, 1317
diagrams (Visual Studio Class Designer), 432
images, 432
services, metadata, 999
Export Settings Wizard, 1271-1273
exposing
custom types, 232
EDMs, 1001
generics in WCF, 1001
LINQ to SQL, 1001
serializable objects from WCF services, 1050
shared members, 259
Expression Blend
applying, 775
for Windows Phone, 957
Expression combo box, 191
expressions, 89
evaluating, 190
arguments, 518
asynchronous programming, 1136-1137
creating threads with, 1060
LINQ, 552
local type inference, 529
queries, 551
extending
LINQ, 554
My.Application property, 504-505
My.Resources namespace, 506
My.Settings property, 506
extensibility. See also extensions
Visual Studio 2012, 1287
extending code editors, 1304-1307
optimizing add-ins, 1304
XML. See XML
eXtensible Application Markup Language. See XAML
Extensible Hypertext Markup Language. See XHTML, 855, 860
Extensible Markup Language. See XML
Extension and Updates tool, 1302
extension methods, 125, 517-524
behavior, 521
built-in, 519
Data Services (WCF), 1025
LINQ, 552
members, 403
overloading, 523
FrontPage, 883
installing, 1301
external documentation files, 1217-1218
external executable (.EXE) files, profiling, 1327
External Tools dialog box, 1268