early binding, 751
EDI (Electronic Data Interchange), 23
editing Active Directory, 1592–1593
editing commands, WPF, 1158
editing text documents. See CapsEditor application
editing Web Parts, 1292–1295, 1298
EID (Expression Interactive Designer), 1139–1140
Electronic Data Interchange (EDI), 23
elements
assigning styles to specific, 1162–1163
programming WPF, 1136
elements, list
accessing, 275–277
adding, 274–275
inserting, 275
removing, 277
sorting, 280–281
#elif, preprocessor directive, 72–73
Ellipse class, WFP shapes, 1147
else. See if…else statement
#else, preprocessor directive, 72–73
Embedded Resource, 1555–1556
enable cancel, background workers, 585–586
enable progress, background workers, 586–587
EnablePartialRendering property, ScriptManager control, 1317
encoding
StreamReader class, 816–817
StreamWriter class, 818
encryption. See public key cryptography
End Class statement, declaring reference type in Visual Basic, 1623–1624
EndEdit( ) method, data in DataRows, 874
EndGetResponse( ) method, WebRequests, 1342–1345
#endif, preprocessor directive, 72–73
EndInit( ) method, custom controls, 1029–1030
EndInvoke( ) method, delegates, 1441–1442
endpoints, 1362
EndReceive( ) method, asynchronous read, 1498
#endregion, preprocessor directive, 73–74
enterprise policy level, 601
Enterprise Services, 1453–1482
automatic transactions, 1456
Component Services Explorer, 1463–1465
contexts, 1455–1456
creating client application, 1465–1466
creating COM+ application, 1458–1461
deployment, 1461–1463
distributed transactions, 1456
history of, 1454–1455
loosely coupled events, 1457
object pooling, 1457
overview of, 1453–1454
queued components, 1457
role-based security, 1457
sample application, 1468–1478
transactions and, 682, 1466–1468
WCF integration with, 1478–1482
where to use, 1455
entity classes, adding to application, 1469–1472
enum keyword, 1627
enumeration, 56–58
arrays, 146–147
in C#, Visual Basic and C++/CLI, 1627
defining, 57–58
integer types compared with, 56
IsolationLevel, 695–696
message enumerators, 1497–1498
RegexOptions, 236
SecurityAction, 607
EnumFontFamilies, 1109–1111
Environment class, Windows Vista, 1658–1659
environment variables, csc tool and, 31
envoy sinks, 1421
equality operators
comparing reference types, 169–170
comparing value types, 170
Equals( ) method
comparing equality of reference types, 169–170
comparing equality of value types, 170
overview of, 107
#error, preprocessor directive, 73
errors.
See also exception handling
error handling, COM, 754
ErrorMessage property, validation controls, 1229–1330
ErrorProvider component, 1004–1005
message queuing, 1488
ScriptManager control, 1318
escape codes, regular expressions, 234, 237
event handlers
adding to ASP.NET user controls, 1262
application configuration and, 1251
COM, 754
controlling animation with, 1188
defining in AJAX Library, 1328–1331
exchanging data using SOAP headers, 1395–1396
file browser example, 796–799
WPF, 1157–1158
event keyword, in C#, Visual Basic and C++/CLI, 1647–1649
event logging
architecture, 532–533
classes, 534–535
creating event sources, 535–536
event log listeners, 540–541
overview of, 531–532
power events, 745
resource files, 537–540
summary, 546
Windows Services, 744
writing logs, 536
event receivers, 212
event sink, 1448–1449
event triggers
assigning, 1169
properties, 1189
starting animation with, 1186–1189
Event Viewer, 532–533
Event-booking application
client example, 1388–1392
updating. See data binding, ADO.NET and
Web service example, 1383–1388
EventHandler delegate, 213
EventHandler<TEventArgs>, 267
EventLog class, 534–535
EventLogTraceListener class, 531
events.
See also delegates
adding to database, 1242–1244
adding to templates, 1249–1250
in C#, Visual Basic and C++/CLI, 1647–1649
defining class members, 85
delegates for implementing, 196
generating, 215–218
loosely coupled, 1457
overview of, 211–212
receiver’s view of, 212–214
remoting and, 1444–1450
summary, 219
thread synchronization and, 578–580
WorkflowRuntime, 1571
evidence-based security, SQL Server, 956
exception control operator, 156
exception handling, 371–392
base classes, 372–374
in C#, Visual Basic and C++/CLI, 1639–1640
catching exceptions, 374–376
catching exceptions from other code, 380–381
catching user-defined exceptions, 385–387
classes, 372–373, 378–379
consequences of unhandled exceptions, 382
defining exception classes, 390–392
handling different exceptions in different places, 384
modifying exception types, 384
multiple catch blocks, 376–380
in .NET Framework, 16–17
overview of, 371–372
summary, 392
System.Exception properties, 381–382
throwing user-defined exceptions, 387–390
try blocks, nesting, 382–384
user-defined classes, 384–385
in Visual Studio 2005, 430–431
Execute( ) method
Activity class, 1543
creating custom activities, 1550–1551
executing activities, 1549–1550
ParallelActivity, 1547
workflow services, 1572
ExecuteNonQuery( )
adding events to database, 1243–1244
OrderData component, 1475
overview of, 859
ExecuteReader( )
overview of, 860
working with data reader, 867
ExecuteScalar( ), 861
ExecuteXmlReader( ), 859, 861–862
Exists( ) method, List<T> class, 277
explicit conversions, data types, 165–168
explicit renewals, leases, 1426
exposing Web services, 1377–1380
express messages, 1487
Expression Interactive Designer (EID), 1139–1140
expression placeholder, 1246
expression tress, LINQ, 1697–1698
expressions, LINQ
lambda, 1694–1695
query, 1687
extender providers, 1563–1565
ExtenderControl, 1322–1324
Extensible HTML (XHTML), 1302–1304
extension methods, LINQ, 1687–1688
external safety level, SQL Server, 956
external state, 1568
ExternalDataExchangeService, 1578