Index

Numbers

1-Click deployment, 884

3-D graphics, Silverlight applications, 908

64-bit browsers, support, 928

Symbols

* (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

A

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

base class members, 337-341

CAS, 1148

ClickOnce, 1257-1258

databases, 540

Developer Center (Windows Phone), 987

directories, 455

Generate from Usage feature, 433-439

interfaces, 348-352

LINQ, 550. See also LINQ

LINQ to SQL, 589, 618

local file systems, 926

members, Visual Basic 2012 projects, 67-68

MSDN Library, 56

My.Resources property, 500

properties, 45, 229-234, 232

Registry, 486-487

resources, 81

role configuration options, 935

System.IO.DriveInfo class, 459

templates, 19-20

Visual Basic 2012 tools, 1359

WCF RIA Services, 911-923

Access property, 428

accounts

Storage Account service, 930

UAC, configuring, 36-39

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

AddFirst method, 410, 674

AddHandler keyword, 383-384

adding. See also insert operations

breakpoints, 51

class diagrams, 431

classes, LINQ to SQL, 589

code snippets, 1282

columns, 710

controls, 870-873

Silverlight applications, 897-900

XAML, 701

DataSets, LINQ to DataSets, 622

Domain Service Class, 913-916

EDMs, 631

environment variables, 1242

expressions to Watch windows, 190

filtering, 873-874

forms, 868-869

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 COM libraries, 85-86

to Data Services, 1023

resources, 498

services, 1002, 1016

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

Add method, 370, 394, 660

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

data providers, 540-541

disconnected modes, 541

Entity Framework, 629

Code First approach, 657

compatibility, 668-669

delete operations, 647-648

downloading additions to, 658

EDMs, 630-643

Fluent APIs, 665-668

handling optimistic concurrency, 648-650

insert operations, 646-647

instantiating, 645

LINQ to Entities, querying EDMs with, 652-653

mapping stored procedures, 654-657

modifying, 645-652

overview of, 629-630

SQL, querying EDMs with, 653-654

update operations, 648

validating data, 650-652

overview of, 540-543

partial methods, 251

serialization, 1053-1054

AdRotator control, 858

Advanced Compile Options dialog box, 44

Advanced Compiler Settings window, 46-47

advanced features, IDEs, 1261

advanced garbage collection, 279-281

advanced LINQ to SQL, 613-617

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

allocating memory

objects, managing, 269-270

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 Analysis, 1309-1315

Code Clone Detection, 1310, 1317-1319

Code Metrics, 1309, 1315

Dependency Graphs, generating, 1334-1335

IntelliTrace, 1310, 1328-1334

overview of, 1309-1310

Profiler, 1310, 1319-1328

analyzing

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

events, 787-789

Silverlight applications. See Silverlight applications

UI elements, 905-908

Visual Basic 2012, 789-790

Windows Phone, 959

WPF, 782-790

annotations

applying, 805

Data Annotations, Code First approach, 663-665

flow documents, 803

services, implementing, 804

anonymous iterators, 419

anonymous types

languages, 524-525

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.myapp file, 75-76

Application object, 719-721

Application Registry (InstallShield), 1239

applications (apps)

AJAX, 1015

animations, 782-790

application-level only settings, 492-493

ASP.NET, 851. See also ASP.NET

configuring security, 879-882

controls, 858-860

creating with Visual Basic 2012, 864-862

deploying, 883-884

handling events, 860-861

MSDeploy, 886-891

overview of, 851-855

publishing, 883, 884-885

state management, 861-864

web forms, 855-857

breakpoints, 50-53

ClickOnce, 1245. See also ClickOnce

accessing, 1257-1258

applying, 1246-1247

configuring, 1251-1255

deploying, 1247-1251

overview of, 1246

Registration-Free COM, 1258-1259

security, 1255

updating, 1252-1253

clients

ClickOnce, 1247

creating, 1022-1027

instances, 606

code, debugging, 193-206

Console, 24, 622

data services, hosting, 1016

desktop, Transparency Level 2, 1151

domains, assemblies, 1145-1147

Edit and Continue feature, 54-55

events, 509-510

exceptions, 207-208, 224

frameworks

My.Application property, 478

WPF, 508

HTTP, 8

InstallShield, 1229. See also InstallShield

IntelliTrace, 1330-1331

localizing, 841

.NET Framework, 841-842

Windows Forms, 842-843

WPF, 844-850

logs

managing, 199-200

writing entries to, 481-482

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

project templates, 17-18

references, GAC, 1227

root namespaces, 291-292

running, 875

runtime errors, 53-54

serialization, 1035

ADO.NET, 1053-1054

customizing, 1045-1048

objects, 1036-1042

WCF, 1050-1053

XAML, 1048-1050

settings, Visual Basic 2012 projects, 81-83

Silverlight, 55, 893. See also Silverlight applications

debugging XAML, 926-927

deploying, 899

drag’n’drop data-binding, 916-919

new features, 898, 928

out-of-browser applications, 923-926

overview of, 894

packages, 899

permissions, 926

security, 926

Silverlight Navigation Applications, 908-910

Visual Basic 2012, 895-897

WCF RIA Services, 911-923

Store (Windows 8), 1111

types, My Project, 34

video, playing, 798

Visual Basic 2012

applying breakpoints/trace points, 184-187

Autos window, 192

Call Stack window, 188-189

Command window, 187-188

debugging, 179-180

inspecting objects, 192-193

Just My Code debugging, 182-184

Locals window, 187

Mixed Mode debugging, 182

Threads window, 191-192

tools for debugging, 180-192

Watch windows, 189-191

Visual Studio 2012, 11. See also Visual Studio 2010

Visual Studio 2012 Express for Web, 932

web, deploying, 887-888

Windows Azure, 929

creating demo projects, 933-944

deploying, 944-952

Management Portal, 949-952

overview of, 929-931

registering the Developer Portal, 931

testing, 942-944

Windows Phone, 955

ApplicationBar class, 982

customizing, 985-987

debugging, 963-964

executing, 984-985

launchers, 967-720

local data storage, 980-981

overview of, 955-956

pages, 963-966

panorama controls, 974-980

Pictures Hub, 982-984

programming models, 958-959

starting, 963-964

submitting to Marketplace, 987-989

tools, 957-958

Visual Basic 2012, 959-985

WPF

Application object, 719-721

architecture, 696-697

arranging controls with panels, 709-716

Browser Applications, 721-724

contra variance, 536

controls, 725. See also controls

creating, 693

handling events, 706-709

Logical Tree/Visual Tree, 704-705

managing windows, 716-719

overview of, 694-695

Visual Studio 2012, 697-699

XAML, 699-704

Application Shortcuts group (InstallShield), 1238-1239

Application state, 861

Application tab (My Project), 34-39

applying

annotations, 805

arrays, 148-155

Async pattern, 1111

attributes, 1181-1187

BigInteger, 102-103

BitmapCacheBrush, 769-771

breakpoints, 184-187

brush properties, 758

CaretBrush, 765-767

ClickOnce, 1246-1247

Code Contracts, 1350-1355

code editor, 24-27

Code First approach, 657-668

collections

generics, 403-412

nongeneric, 394-403

ColorAnimation, 786-788

COM

objects, 1192-1196

P/Invoke, 1200

combinators, 1129-1131

constants, 175-176

cookies, 863

CopyToDataTable method, 624-626

CreateInstance, 154

CSS, 856

dates, 137-143

DoubleAnimation, 783-785

DrawingBrush, 768

EDMs, 630-643

embedded expressions, 682-685

enumerations, 315

Expression Blend, 775

fields, 227

Finalize method, 271-272

fundamental types, 125-155

GUIDs, 147-148

highlights, 805

ImageBrush, 762-765

inheritance, 324-327

initializers, objects, 558-559

iterations, 166-170

iterators, LINQ, 562-565

LinearGradientBrush, 760-761

logs, SQL, 613

loops, 95-172

multiple transforms, 782

My.Application property, 478-482

My namespace, 506-510

My Project, 33-39

Object Browser tool, 394

projects, Visual Studio 2010, 16-27

query interceptors, 1030-1033

RadialGradientBrush, 762

reference types, 103-106

reserved words as keywords, 72

SelectionBrush, 765-767

SolidColorBrush, 759-760

streams

memory, 466

strings, 467

strings, 125-137

structures, 305-308

tasks, parallel computing, 1072-1080

time, 143-144

trace listeners, 196-202

value types, 92-103

VisualBrush, 767-768

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

.NET Framework, 2-3

WPF, 696-697

archives (Zip)

support, 8

Visual Basic 2012, 472-474

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

methods, 237-242, 351

nullable, 241

ParamArray, 239-240

stringToPrint, 238

arithmetic operators, 155-157

ArrayList collection, 394-397

Array literals, 151, 515-516

arrays

applying, 148-155

collections, comparing, 148-149

copying, 152-155

formatting, 152-155

generics, 369-370

initializing, 150

inspecting, 152-155

iterators, 169

jagged, 151-152, 516

multidimensional, 151, 516

passing, 239

rules, 267

sorting, 152-155

support, 8

zero-based, 149

As clause, 96, 373, 525

AsDataView method, 623

AsEnumerable method, 517-519

AsNoTracking method, 654

AsParallel, invoking, 1097

ASP.NET, 6

Administration tool, 879

applications, 851

configuring security, 879-882

controls, 858-860

creating with Visual Basic 2012, 864-862

deploying, 883-884

handling events, 860-861

MSDeploy, 886-891

publishing, 883-885

state management, 861-864

web forms, 855-857

handlers in, 8

overview of, 851-855

page requests, 852

scalability, 852-853

templates, 854-855

assemblies, 3, 1143

application domains, 1145-1147

attributes, 1145, 1184

Base Addresses for, 47

BCL (GAC), 1223

Caller Information, 1177-1180

CLS, 264

COM, registering for interoperability, 1197

GAC, 84

installing/uninstalling, 1223-1224

signing with strong names, 1224-1226

inspecting, 1161

locations, 1144

metadata, 1158-1160

MsCorlib.dll, 6

My.Application property, retrieving information, 478-479

.NET Framework, 4-5

overview of, 1143-1145

PIAs, 86-87

Portable Class Library, 441

references, 84

reflection, 1158. See also reflection

invoking dynamic code, 1169-1171

retrieving information from, 1160-1162

types, 1162-1169

sandboxed models, 1152-1154

security models, 1148-1155

serialization, generating, 48

sharing, 853

signing, 1145

types, 1144

versions, 1144

Assembly Information dialog box, 77

Assembly Information window (My Project), 35-36

AssemblyInfo.vb file, 76-77

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

value types, 98-99

variables, 45

assignment operators, 157-158

associations, 593

assumptions, contracts, 1355

asynchronous calls, 1109

asynchronous programming, 466, 1103

APM, 1106-1107

Async pattern, 1107-1112, 1120-1122. See also Async pattern

canceling, 1131-1134

exception handling, 1127

callbacks, 1116-1120

EAP, 1104-1106

event-based asynchrony, 1116-1120

input/output (I/O), 8

I/O file operations (.NET 4.5), 1137-1141

lambda expressions, 1136-1137

overview of, 1104

requests, 853

synchronous approach to, 1112-1116

task-based asynchrony, 1127-1131

Asynchronous Programming Model. See APM, 1106-1107

Async pattern, 1107-1112

asynchronous programming, 1120-1122

canceling, 1131-1134

documentation, 1126

exception handling, 1127

progress, reporting, 1134-1136

attributes

AllowPartiallyTrustedCallers, 1154

applying, 1181-1184

assemblies, 1145

CallerMemberName, 1179

ChangeInterceptor, 1032

CLSCompliant, 70, 336, 1182

code, 1181, 1184-1188

Column, 664

ComVisible, 1198

connectionString, 660

customizing, 428

Data Annotations, 664

DebuggerBrowsable, 202-203

DebuggerDisplay, 202-203

DebuggerStepperBoundary, 202-203

DebuggerTypeProxy, 202, 205

DebuggerVisualizer, 202

debugging, 202-206

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

reflection, 1189-1190

Required, 650, 664

security, 1151

SecurityCritical, 1151

SecurityRules, 1151

SecuritySafeCritical, 1151

SecurityTransparent, 1151,

Serializable, 70, 1182

StringLength, 664

StructLayout, 310, 1203-1204

Table, 664

VBFixedString, 1205

Visual Basic 2012 projects, 69-70

WebGet, 1028

WebInvoke, 1028

XmlRoot, 1045

audio, 77

playing, 485

Audio property, 482, 485

Authenticode certificate, 1255

auto-completing code, 26

auto-generating

complex types/function imports, 657

contracts, 995-996

partial classes, 248

XAML code for details, 827

auto-implementing properties, 229-231

Autos window, 192

availability

Async patterns, 1111

For..Each, 168

of templates, 19-20

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

B

Background property, 717

backgrounds

compilers, 43

images (Windows Phone), 986

BAML (Binary Application Markup Language), 844

Barrier class, 1078-1080

Base Addresses for assemblies, 47

BaseClassDemo class, 340

base classes

contra variance, 536

members, accessing, 337-341

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

BigInteger, applying, 102-103

Binary Application Markup Language. See BAML, 844

binary files

reading, 465

writing, 465

BinaryFormatter class, 1036

binary numbers, 160-162

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

BingMapsTask, 967-969

BitArray collection, 401

bit flags, enumeration values as, 320

BitmapCacheBrush, 758, 769-771

Bitvector32 collection, 402-403

bitwise operators, 160-162

Blob Storage, 930-931

blocks

catch, 45

Class..End Class, 348

conditional code, 172-175

If..Then..Else code, 172-173

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

iterators, 418-419

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

applications, 50-53

applying, 184-187

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

WPF, 757-771

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

Button controls, 728, 859

buttons, assigning styles, 771

ByRef keyword, 237-242

Byte keyword, 95

ByVal keyword, 237-242

C

caches

events, 856-857

GAC, 84, 1144, 1221

InstallShield, 1237

overview of, 1222-1227

troubleshooting DLLs, 1221-1222

Cache state, 862-863

CalculateDiscount method, 354

CalculatePerimeter method, 1349

calculating

arithmetic operators, 156. See also arithmetic operators, 155-157

Code Metrics, 1309, 1315

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

Call Stack window, 188-189

cameras, capturing Silverlight applications, 904

canceling

Async pattern, 1131-1134

PLINQ queries, 870

tasks, 1077-1078

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

CaretBrush, 758, 765-767

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

events, 383-385

exceptions, 217

COM, 1195

without variables, 223-224

Catch statement, 210

Category class, 592, 595

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

underscore (_), 70, 265, 355

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

Barrier, 1078-1080

BaseClassDemo, 340

BCL, 2, 5-6

BinaryFormatter, 1036

CancellationTokenSource, 1077, 1134

Category, 592, 595

CLS, 263-267

CompositeType, 997

ConcurrentExclusiveSchedulerPair, 852

constructors, 252-259

Contacts, 358

contra variance, 536

control properties, 428

CultureInfo, 842

CustomConverter, 839

DataContext, 600, 619

DataContractSerializer, 1050

DataServiceContext, 1026

DbContext, 638-640, 645

DbSet, 653

Debug, 194-195

declaring, 225-227

diagrams

adding, 431

files, 425

Document, 348, 352

Domain Service Class, adding, 913-916

DownloadStringCompletedEventArgs, 1106

DropCreateDatabaseIfModelChanges, 665

fields, 227-229

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

LINQ to SQL, 589-599

mapping, 1335

methods

executing actions with, 235-247

partial methods, 251-252

modules, comparing, 303

Monitor, synchronization, 1065

namespaces, 284

NavigationService, 965

nested, 226-227, 348

NestedClass, 227

NetworkStream, 474

ObjectContext, 916

ObservableCollectionHelper, 503

Page, 856

Parallel, 1071

ParallelEnumerable, 1097

parallelism, 1071

ParallelLoopState, 1085

ParallelOptions, 1071

partial, 248-251

portable, creating, 440-451

Portable Class Libraries, 7, 440-451

ProcessStartInfo, 1058

properties, 229-234

proxy, WCF, 1002

reference types, 90, 103-106

requirements for COM exposure, 1197

ResourceManager, 80, 500

ResurrectDemo, 279

rules, 266

scope, 234-235

shared members, 259-263

SoapFormatter, 1039

SqlCommand, 541

Stream, methods, 1138

StreamWriter, 464

Style, 771

support, 301

System.Array, 105, 152-155

System.Attribute, 69

System.Boolean, 95

System.Byte, 95

System.Char, 95

System.Collections, 394

System.Convert, methods, 123

System.DateTime, 95, 139

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.Directory, 455-458

System.IO.DirectoryInfo, 458-459

System.IO.DriveInfo, 459

System.IO.File, 293, 460-461

System.IO.FileInfo, 462-463

System.IO.Path, 454-455

System.IO.Stream, 105, 464

System.Math, 157

System.Numerics.BigInteger, 95

System.Object, 90, 105

inheritance, 325-329

methods, 92

naming, 91

WPF, 696

System.SByte, 95

System.SerializableAttribute, 70

System.Single, 95

System.String, 105, 126

System.Threading.ThreadPool, 1062

System.TimeSpan, 95, 142

System.TimeZone, 95

System.Unt16, 95

System.Unt32, 95

System.Unt64, 95

System.ValueType, 91-92

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

Class View window, 432-433

clauses

As, 96, 373, 525

Into, 570

AddressOf, 381

Aggregate, 570

Handles, 385

OrderBy, 916

Clear method, 396, 404, 410, 484

ClickOnce, 1229

accessing, 1257-1258

applications

applying, 1246-1247

deploying, 1247-1251

overview of, 1246

certificates, 1255

configuring, 1251-1255

overview of, 1245-1247

Registration-Free COM, 1258-1259

security, 1255

updating, 1252-1253

ClientBin, 899

clients

applications

ClickOnce, 1247

creating, 1022-1027

exception handling, 220

formatting, 1002

instances, 606

validating, 1004

WCF, configuring, 1004

Clipboard property, 482

Clone method, 117, 352, 374

clones, searching code, 1310, 1317-1319

Close method, 194, 464

CloudBerry Explorer for Windows Azure, 932

cloud services

settings, 946

Windows Azure, 930. See also Windows Azure

Cloud Storage Studio (Cerebrata), 932

CLR (Common Language Runtime), 2-5, 1191

assemblies, 1144-1147

deferred execution, 565-568

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

enumerations, 320-321

inheritance, 327

interfaces, 354-355

namespaces, 295

naming conventions, 264-266

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

applying, 1181-1184

customizing, 1184-1188

reflection, 1189-1190

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

dynamic

creating at runtime, 1147

invoking, 1169-1171

editors

creating projects, 24

extending, 1304-1307

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

LINQ, examples, 551-552

LocBaml, 844-845

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

reusing, 1275-1283

SQL, database objects, 655

System.Reflection.Emit namespace, 1171-1177

testing, 1337

applying Code Contracts, 1350-1355

TDD, 1344-1349

unit tests, 1337-1344

tools, Visual Basic 2012, 1358

unmanaged

COM, 1199

writing, 4

Visual Basic 2012

debugging, 179-180

debugging in, 193-206

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

code editors, applying, 24-27

Code First approach, 630, 657

Data Annotations, 663-665

databases, generating, 660-663

migrating, 665

WCF Data Services, 1016

Code Gallery, 21

Code Metrics, 1309, 1315

Result tool window, 1317

CodePlex, 6, 932

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

ArrayList, 394-397

arrays, comparing, 148-149

BitArray, 401

Bitvector32, 402-403

concurrent, 413

customizing, 413

debugging, 405

Dictionary (Of TKey, TValue), 407

generics

applying, 403-412

optimizing, 395

serialization, 1049

HashTable, 398-399

HybridDictionary, 400

initializers, 405-406

in-memory, querying, 558

iterators, 169, 415. See also iterators

LinkedList (Of T), 410-412

List (Of T), 403-405

ListDictionary, 399

NameValueCollection, 401

nongeneric, 394-403, 406

ObservableCollection (Of T), 408-410, 814-818

OrderedDictionary, 399

parallel computing, 1087-1092

Queue, 397-398

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

ColorAnimation, 786-788, 905

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

applying, 1192-1196

exposing, 1197-1199

P/Invoke, 1200

converting types to unmanaged, 1202-1203

encapsulating, 1201-1202

handling exceptions, 1205-1206

Registration-Free (ClickOnce), 1258-1259

unmanaged code, 1199

Win32 API calls, references to, 1206

combinators, 1129-1131

combining delegates, 382-383

ComboBox control, 730-732

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

customizing, 1268-1270

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

Command window, 187-188

comments

Data Annotations, Code First approach, 663-665

resources, 80

XML, 1207

generating Help files, 1220

implementing, 1210-1219

overview of, 1208-1209

common dialogs, WPF, 754-755

Common Intermediate Language. See CIL, 5

Common Language Runtime. See CLR

Common Language Specification. See CLS

Common Type System, 89-93

objects, 90

reference types, 90-93

value types, 90-93

Compare method, 127

comparing

arrays/collections, 148-149

classes/modules, 303

reference types/value types, 106-111

strings, 126-128

comparison operators, 163-165

compatibility

Entity Framework (ADO.NET), 668-669

Windows Forms, 75

compilers, backgrounds, 43

compiling, 5

constants, 47-48

Help files, generating, 1220

multicore JIT compilation, 853

namespaces, 6

on-the-fly code, 1297

options, 41-44

Output window, 33

projects, 39-48

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

COM, importing, 1192-1194

Windows Media Player, 86-87

CompositeType class, 997

compressing data with streams, 467-474

Compute Emulator, 943

ComVisible attribute, 1198

concatenating

concatenation operators, 163, 583

strings, 136-137

Concat method, 519

Conceptual Schema Definition Language. See CSDL, 634

concurrency

concurrent collections, 413, 1087-1092

concurrent operations, managing, 1129

handling, 648-650

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

inheritance, 334-337

conditions

contracts

post-conditions, 1353-1354

preconditions, 1352-1353

debugging, 187

warnings, 45

configuration files

listener settings, 200-202

naming, 493-495

Configuration Manager, 42

configuring

Advanced Compiler Settings window, 46

ClickOnce, 1251-1255

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

MSDeploy, 889-888

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

UAC, 36-39

users, 881, 1271-1273

View Windows Settings (My Project), 36-39

Visual Studio 2012 projects, 1289-1299

warnings, 44-46

WCF Service Configuration Editor, 1009-1010

Windows Azure subscriptions, 944

conflicts, avoiding with different namespaces, 287

connecting

ADO.NET, 541

databases, 541-543

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

constants, 175-176

compiling, 47-48

customizing, 48

constraints

generics, 372-374

methods, 373

multiple, 374

New keyword, 373

types, 373

constructors, 252-259

defaults, viewing, 253

inheritance, 341-342

modules, 303

overloading, 255-257

private, 257

types, comparing reference types/value, 110

consuming

code snippets, 1276-1277

Data Services, 1022-1027

generics, 370-375

WCF services, 1001-1007

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

implicit line, 552, 1182

LINQ, 559-561

contracts

ABC properties, 992

auto-generating, 995-996

Code Contracts, applying, 1350-1355

customizing, 997-1001

events, 1355

invariants, 1354

post-conditions, 1353-1354

preconditions, 1352-1353

properties, configuring, 1350-1351

WCF, 993

contra variance, 536-537. See also covariance, 535

controls

adding, 870-873

AdRotator, 859

Ajax, 854

ASP.NET, 858-860

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

DomainDataSource, 919-921

DropDownList, 859

FileUpload, 859

FlowDocumentReader, 799, 802

GridView, 859

HiddenField, 859

HTML, 858-860

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

Image, 793-795, 858-859

ImageButton, 859

ImageMap, 859

Label, 859

LinkButton, 859

ListBox, 859

managing, 702

MediaElement, 795, 900

MultiView, 859

navigation, adding, 874

Panel, 859

panels, managing, 709-716

PictureBox, 499

PivotViewer, filtering data with, 920-923

properties, binding, 813

RadioButton, 859

RadioButtonList, 859

RangeValidator, 859

RequiredFieldValidator, 859

resizing, 711

RichTextBox, 806-808

servers, 858

Silverlight applications, 726, 897-900

strongly typed data, 875-862

Substitution, 859

Table, 859

TextBox, 812, 857-859

View, 859

VirtualizingStackPanel, 714

WindowsFormsHost, 1196

Wizard, 859

WPF, 725

Border, 727

Button, 728

Calendar, 728-729

CheckBox, 729-730

ComboBox, 730-732

ContentControl, 726-727

DataGrid, 731

DatePicker, 733

DocumentViewer, 733

Expander, 734

features, 725-726

Frame, 734-735

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

templates, 775-778

TextBlock, 749

TextBox, 750

ToolBar, 750

TreeView, 751

WebBrowser, 735, 753

WindowsFormsHost, 753

XAML, adding, 701

Xml, 859

conventions

Code First, 663

CType, 314

naming, 8

CLS, 264-266

Code Analysis, 1314

exceptions, 209, 345

identifiers, 72

interfaces, 355

value types, 94

Pascal, 355

conversion operators, 120-125, 572-574

widening/narrowing, 120-125

Converter property, 840

converting

dates to strings, 138-139

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

values, 835-840

ConvertTimeBySystemZoneId method, 147

cookies, applying, 863

copying

arrays, 152-155

objects with serialization, 1038

strings, 131

CopyToAsync method, 1138

CopyToDataTable method, applying, 624-626

CopyTo method, 396, 410

Counter property, 343

Count method, 307, 396, 519

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

CType, 112, 117, 123-125

overloading, 312-314

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

customizing

applications (Windows Phone), 985-987

attributes, 428

awaiters, implementing, 1141

code attributes, 1184-1188

collections, 413

commands, 1268-1270

compiling, 43-44

configurations, 42-43

constants, 48

contracts, 997-1001

dates, formatting, 138

Debug configurations, 41

debugger visualizers, 193

events, 389-391

exceptions, inheritance, 344-346

extensions

libraries, testing, 524

methods, 521-523

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

serialization, 1045-1048

tasks, scheduling, 1070

templates, 519

text, 898

themes, 14

toolbars, 1268-1270

toolboxes, 1275

types

exposing, 232

local type inference, 513

selecting, 111

validations, 614-616

value types, 103

Visual Studio 2012, 1267-1270, 1289-1299

XML serialization, 1044-1045

D

Dark theme (Visual Studio 2012), 14

Data Annotations, Code First approach, 663-665

Database First, 657

databases. See also LINQ

ADO.NET, overview of, 540-543

Code First approach, generating, 660-663

connecting, 541-543

data sources, adding, 912-913

EDMs, formatting from existing, 631

LINQ, 550. See also LINQ

LINQ to DataSets, 622

LINQ to SQL, accessing, 589

objects, adding, 655

products, saving, 607

schemes, modifying, 664-665

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

drag’n’drop, 818-840

modes, 813

overview of, 811-818

strings, formatting, 835-840

values, converting, 835-840

views, 830-835

Visual Basic 2012, 814

data centers, 929

DataContext class, 600, 619

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)

consuming, 1022-1027

IIS, deploying, 1021

implementing, 1013, 1016-1021

overview of, 1013-1015

querying data, 1026

query interceptors, applying, 1030-1033

server-driving paging, 1033-1034

DataSets, 539

data-binding to, 834

formatting, 543-547

LINQ to, 621

extension methods, 624-627

queries, 621-624

overview of, 543-547

Data Source Configuration Wizard, 544

data sources

adding (Silverlight applications), 912-913

Show Data Sources command, 917

Data Source window, 820

data types, 89

arrays, applying, 148-155

Common Type System, 89-93

conditional code blocks, 172-175

constants, 175-176

converting between reference types/value, 111-119

dates, applying, 137-143

extension methods, 517-524

fundamental types, 125-155

GUIDs, applying, 147-148

iterations, 166-170

loops, 95-172

objects, 90

operators, 155-165

arithmetic, 155-157

assignment, 157-158

bitwise, 160-162

comparison, 163-165

concatenation, 163

logical, 158-159

shift, 162-163

short-circuiting, 159-160

reference types, 90-93

applying, 103-106

primitive, 105-106

time, applying, 143-144

TimeZone, 144-147

TimeZoneInfo, 144-147

value types, 90-93

applying, 92-103

conversion operators, 120-125

customizing, 103

differences between reference types/value types, 106-111

methods, 100-101

.NET Framework, 93-94

optimizing, 101

With..End With statements, 176-177

data validations, customizing, 614-616

DatePicker control, 733

dates

applying, 137-143

formatting, 139-142

strings, converting to, 138-139

subtracting, 142-143

DbContext class, 638-640

instantiating, 645

dbentityvalidationexception, 651

DbSet class, 653

DbUpdateConcurrencyException, 649

Deactivated event, 509

deallocating memory, 110. See also allocating

Debug class, 194-195

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

breakpoints, 50-53

Visual Basic 2012, 50

attributes, 202-206

collections, 405

debug information, generating, 47

Edit and Continue feature, 54-55

IntelliTrace, 1310, 1328-1334

Output window, 33

processes, 180-182

runtime errors, 53-54

tasks, 1086

Visual Basic 2012, 179

applying breakpoints/trace points, 184-187

Autos window, 192

Call Stack window, 188-189

in code, 193-206

Command window, 187-188

inspecting objects, 192-193

Just My Code debugging, 182-184

Locals window, 187

Mixed Mode debugging, 182

preparing examples for, 179-180

Threads window, 191-192

tools, 180-192

Watch windows, 189-191

Visual Studio 2010, 48-55

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

classes, 225-227

constants, 176

controls, 726

delegates, 380-382

events, 386

instances, LINQ to SQL, 600

interfaces, media players, 796

objects, WithEvents keyword, 384-385

properties, 64

reference types, 110

structures, 65, 306

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

default properties, 233-234

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

interfaces, 347-348

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

combining, 382-383

declaring, 380-382

generating, 437

generics, defining, 370

namespaces, 284

overview of, 379-383

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

deleting

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

Windows Azure, 944-952

without PIAs, 86-87

ASP.NET applications, 883-884

ClickOnce, 1229

accessing, 1257-1258

applications, 1247-1251

configuring, 1251-1255

overview of, 1245-1247

Registration-Free COM, 1258-1259

security, 1255

updating, 1252-1253

code snippets, 1300

InstallShield. See also InstallShield

overview, 1231

packages, 1244

MSDeploy, 884-891

My.Application property, 480-482

portable libraries, 451

Silverlight applications, 899

Visual Studio 2012 extensibility, 1299-1302

WCF Data Services to IIS, 1021

web applications, 887-888

Windows Azure, viewing status, 947

Windows Installer, 1230

XBAP, 724

XCopy deployment, 1144, 1222

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

ClickOnce, 1251-1255

Code Analysis, 1312

columns, 823

DataSets, 544

EDMs, 640

Installation Requirements (InstallShield), 1234

LINQ to SQL, 590

Microsoft Design Style, 11-12

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

Finalize method, 271-272

implementing, 275

invoking, 270

DetailsView control, 859

Developer Center (Windows Phone), accessing, 987

Developer Portal (Windows Azure), registering, 931

development

TDD, 1344-1349

Windows 8 (WPF), 695

Windows Phone tools, 957-958

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 New Item, 589, 1267

Add Service Reference, 1002

Advanced Compile Options, 44

Assembly Information, 77

Assertion, 196

Browser for a Destination, 1238

common dialogs (WPF), 754-755

Export Diagram as Image, 424, 432

Extension and Updates, 1302

External Tools, 1268

Generate New Type, 438, 1346

Infer XML Schema Set from XML, 687

Manage NuGet Packages, 658

New Interface, 425

New Project, 21, 854, 1263

Options, 513

Prerequisites, 1252

Publish Web, 887

Reference Manager, 84-85, 936

Visual Studio Output Selector, 1236

Dictionary (Of TKey, TValue) collection, 407

Dim keyword, 308

DirectCast, 123-125

directives

Imports, 17

adding, 286

multithreading, 1060

namespaces, 292-295

System.Globalization, 843

Visual Basic 2012 projects, 68-69

Option Infer, 513

Region (Visual Basic 2012 projects), 69

directories

deleting, 457

exceptions, handling, 459

modifying, 453-459

System.IO.Directory class, 455-458

System.IO.DirectoryInfo class, 458-459

DirectoryNotFoundException, 459

direct routing strategy, 708

DirectX (WPF), 696

disabling

Just My Code, 183, 1078

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

troubleshooting, 1221-1222

WMPLib.dll, 86

DoCancel method, 873

docking tool windows, 27

DockPanel panel, 714

documentation

Async pattern, 1126

code, 1207. See also XML comments

external files, 1217-1218

.NET Framework, 55-59

permission requirements, 1219

Visual Basic 2012, 55-59

Document class, 348, 352

Document Outline window, 704

DocumentProperties attribute, 1187

documents

flow

implementing, 799

viewing, 803

modifying, 799-808

RichTextBox control, 806-808

spell check, implementing, 808

WPF, 793

XML, formatting, 672

XPS, viewing, 808-809

Document Type Definition. See DTD, 672

DocumentViewer control, 733, 808

Do..Loops, 170-171

DomainDataSource control, 919-921

domains

applications, assemblies, 1145-1147

Domain Service Class, adding, 913-916

DoSomething method, 229

DoubleAnimation, 783-785, 905

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

DrawingBrush, 758, 768

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

E

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

applying, 24-27

extending, 1304-1307

Color Theme Editor (Visual Studio 2012), 14

localization, 848

root namespaces, 292

spell check, implementing, 808

strings, 106, 133-136

Visual Studio 2012 built-in image editors, 498

WCF Service Configuration Editor, 1009-1010

XAML, 700. See also XAML

EDMs (Entity Data Models), 630

adding, 868

applying, 630-643

LINQ to SQL, exposing, 1001

mapping, 638-640, 1335

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

operators, 583-584

resizing, 780

rotating, 780

UI

adding to Silverlight applications, 897

animating, 905-908

Logical Tree, 704

XML comments, 1215-1217

elevated privileges (Visual Studio 2012), 933

Ellipse element, 733

EmailComposeTask, 967, 971

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

insert operations, 605-608

update operations, 608-607

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

compatibility, 668-669

delete operations, 647-648

downloading additions to, 658

EDMs, 630-643

LINQ to Entities queries, 652-653

SQL queries, 653-654

Fluent APIs, 665-668

insert operations, 646-647

instantiating, 645

modifying, 645-652

optimistic concurrency, handling, 648-650

overview of, 629-630

stored procedures, mapping, 654-657

update operations, 648

validating data, 650-652

enumerations, 305, 315-321

applying, 315

CLS, 320-321

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

Equals method, 309, 314, 328

ErrorCode property, 1205

ErrorDialog property, 1058

Error Lists, 24

projects, compiling, 40

windows, navigating, 30-31

errors

Code Analysis, 1314

correction options, 112

FormatException, 100

handling, 207

messages, 30

Microsoft code analysis rules, 1313

runtime, debugging, 53-54

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

animations, 787-789

applications, 509-510

caches, 856-857

CollectionChanged, 816

contracts, 1355

customizing, 389-391

Deactivated, 509

deserialization, 1047

DispatcherUnhandledException, 509

Exit, 510

FragmentNavigation, 510

garbage collection, registering, 281

handling, 383-385

ASP.NET, 860-861

ContentFrame_Navigated event handlers, 910

implementing, 385-389

Init, 856

IntelliTrace, 1331-1333

Load, 856

LoadCompleted, 510

MediaFailed, 798

My.Settings property, 495-496

Navigated, 510

Navigating, 510, 965

NavigationFailed, 510, 965

NavigationProcess, 510

NavigationStopped, 510, 965

NetworkAvailabilityChanged, 509

NonSerialized, 1042

pages, 856

passing, 387-389

postback, 856-857

PreRender, 856

ProgressChanged, 1106, 1134

PropertyChanged, 387, 495

registering, 383-384

routing, 707-708

serialization, 1047-1048

SessionEnding, 510

SettingChanging, 495

SettingsLoaded, 495

SettingsSaving, 495

ShutDown, 509

Silverlight applications, handling, 899

Startup, 509-510

StartupNextInstance, 509

TextChanged, 857

UnhandledException, 509

Windows Event Log, 199

WPF

applications, 706-709

handling, 694

EventSchemaTraceListener, 196

Event viewer, 199

examples

of LINQ, 551-552

Visual Basic 2012, debugging, 179-180

example tag (XML comments), 1214

Excel (Microsoft), exporting code metrics to, 1317

exceptions

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

FaultException, 1007-1008

FileNoteFound, 160, 209, 219

FormatException, 100, 209

handling, 207-224

Async pattern, 1127

files, 463

parallel computing, 1075-1077

P/Invoke, 1205-1206

hierarchies, 212-213

IndexOutOfRange, 153, 209, 626

inheritance, customizing, 344-346

IntelliTrace, 1331-1333

InvalidCastException, 123-125, 373, 626

InvalidOperationException, 252, 584, 612, 1091

IOException, 455, 459

MethodAccessException, 1152

MissingLastNameException, 345-346

naming conventions, 345

NotImplementException, 436

NullReferenceException, 626

OperationCanceledException, 1078, 1134

overview of, 207-208

pathnames, handling, 459

PathTooLongException, 459

PLINQ, handling, 1100-1101

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

throwing, 218-220

Try..Catch..Finally blocks, 209

UnauthorizedAccessException, 459

UnhandledException, 509

variables, catching without, 223-224

Visual Basic 6 migration, 209

WCF, handling, 1007-1008

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

actions with methods, 235-247

applications

debugging, 49

managing, 4

Windows Phone, 984-985

assemblies, 1145-1147

data operations, 660-663

debugging, 180-182

deferred execution (LINQ), 565-568

processes, 5

existing settings, importing, 1273

existing toolbars, customizing, 1268

Exit event, 510

exiting

iterators, 418

methods, 246-247

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

extension methods, 523-524

images, 432

services, metadata, 999

templates, 1261-1265

Export Settings Wizard, 1271-1273

exposing

COM objects, 1197-1199

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

embedding, applying, 682-685

evaluating, 190

lambda, 526-533

arguments, 518

asynchronous programming, 1136-1137

creating threads with, 1060

lexical closures, 532-533

LINQ, 552

local type inference, 529

multiline, 530-531

Sub, 531-532

ternary If operators, 533-534

queries, 551

regular, 251-252, 999

extending

data types, 90, 517-524

LINQ, 554

My.Application property, 504-505

My.Computer property, 505-506

My namespace, 502-506

My.Resources namespace, 506

My.Settings property, 506

extensibility. See also extensions

Visual Studio 2012, 1287

building packages, 1289-1299

deploying, 1299-1302

extending code editors, 1304-1307

managing, 1302-1303

optimizing add-ins, 1304

overview, 1287-1289

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

customizing, 521-523

Data Services (WCF), 1025

exporting, 523-524

LINQ, 552

LINQ to DataSets, 624-627

members, 403

overloading, 523

extensions

Binding markup, 812-813

FrontPage, 883

installing, 1301

external documentation files, 1217-1218

external executable (.EXE) files, profiling, 1327

External Tools dialog box, 1268

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.223.206.225