data, Active Directory, 1584, 1589
data access, 847–900
ADO.NET and, 848
connecting to database, 851–857
data binding, 1052–1058
data readers for, 866–869
database-specific classes, 849–851
DataGridView class hierarchy, 1049–1052
DataGridView control. See DataGridView control
executing commands, 858–866
key generation with SQL server, 895–898
managing data and relationships. See DataSet
namespaces, 848–849
naming conventions, 878–899
overview of, 847
persisting DataSet changes, 889–892
populating DataSet, 887–889
shared classes, 849
summary, 899–900
tiered development, 894–895
writing XML output, 890–894
XML schemas, 881–887
data access, Visual Studio .NET, 1058–1071
creating connections, 1058–1062
dispatching methods, 1069
getting selected row, 1069–1070
manufactured tables and rows, 1067–1068
other common requirements, 1063–1066
selecting data, 1062
updating data source, 1062–1063
using attributes, 1068
data adapter
populating DataSet with, 888
stored procedures in, 888–889
summary, 900
updating with, 889–890
data binding
to database, 1238–1239
to XML, 1206–1208
data binding, ADO.NET and, 1236–1250
adding events to database, 1242–1244
binding to database, 1238–1239
customizing calendar control, 1239–1242
data display with templates, 1245–1247
databases and, 1237–1238
more on, 1244–1245
overview of, 1236
templates for, 1247–1250
data binding, Windows Forms
Binding class, 1056
BindingContext property, 1054–1055
CurrencyManager and PropertyManager, 1056–1058
to generic collections, 1047
hierarchy for objects used in, 1053–1054
overview of, 1052
simple, 1053
data binding, WPF, 1189–1208
adding list items dynamically, 1204–1205
binding modes and requirements, 1190
data templates and, 1205–1206
to list, 1198–1201
master-details binding, 1201–1202
ObjectDataProvider, 1197–1198
overview of, 1189–1190
to simple objects, 1194–1196
value conversion, 1203–1204
with XAML, 1191–1193
to XML, 1206–1208
data columns
data rows in, 872–874
naming conventions for, 898
overview of, 871–872
schema generation, 874–876
setting constraints, 878–881
data constraints. See constraints
data contracts
defined, 1522
overview of, 1524–1525
data members, classes, 85
Data menu, Visual Studio, 1060
data reader, 866–869
data relationships. See relational data
data rows
adding, 890–891
data relationships in, 876–878
deleting, 892
filtering by data, 1042–1043
filtering by state, 1043–1044
getting selected row, 1070–1071
manufactured, 1067–1068
overview of, 872–874
sorting, 1044–1045
type-safe access to data, 1063–1066
updating, 892
data service layer
Enterprise Services for, 1455
tiered development, 894–895
Data Source Configuration Wizard, 1060, 1238–1239
data sources, for data-bound controls, 1247
data tables
adding new row to, 890–891
constraints, 878–881
converting ADO.NET data to XML, 936–938
creating with XML data, 975–976
data columns, 871–872
data relationships, 876–878
data rows, 872–874
displaying data from DataView, 1042–1045
displaying within DataGridView, 1038–1039, 1041–1042
manufactured, 1067–1068
naming conventions, 898
overview of, 870
schema generation, 874–876
type-safe access to data, 1063–1066
updating Event-booking application, 1237–1238
data types
anonymous types, 1700–1701
Boolean types, 43–44
boxing and unboxing, 168
built-in reference types, 45
built-in value types, 41
character types, 44–45
collection, 269–270
COM, 751
creating data columns for .NET, 871
creating type library, 772–774
CTS, 10–12
CTS types, 41
decimal types, 43–44
defining, 1623–1625
explicit conversions, 165–168
floating-point types, 42–43
format string specifiers for numeric types, 228–229
immutable, 223
implicit conversions, 164–165
inference, LINQ, 1698–1699
integer types, 41–42
marshalling and, 755
naming conventions for generic types, 246–247
nullable types and operators, 161–162
object type, 45–46
sizeof operator, 337
string type, 46–47
strong data typing, 9–12
type conversion, 164
type safety, 163, 245
value types distinct from reference types, 9
value types vs. reference types, 39–41
Web services, 1380
data Web server controls, 1228–1229
database
adding events to, 1242–1244
ADO.NET classes specific to, 849–851
binding to, 1238–1239
connecting to. See connections, database
traditional queries across, 1680
transaction, 677–680
updating Event-booking application, 1237–1238
database tier, 894–895
DatabaseResourceManager, 672
DatabaseResourceReader
client application for, 673
creating, 670–671
DatabaseResourceSet, 671–672
DataBind( ) method, Web service, 1390–1391
DataColumn, 849
DataColumnMapping, 849
DataContext, 1685
DataGrid, 870
DataGridView control, 1037–1049
class hierarchy, 1049–1052
data sources, 1039
displaying data from arrays, 1040–1041
displaying data from DataSet class, 1045–1047
displaying data from DataView, 1042–1045
displaying DataTable within, 1041–1042
displaying generic collections, 1047–1049
displaying tabular data, 1038–1039
IListSource and IList interfaces, 1047
overview of, 1037–1038
DataList, 1247–1250
DataMember property, data contract, 1525
DataRelation, 849
DataRow, 849
DataRowState, 873–874
DataSet, 869–894
data columns, 871–872
data constraints, 878–888
data relationships, 876–878
data rows, 872–874
data tables, 870
defined, 849
deleting rows, 892
displaying data from, 1045–1047
inserting new rows, 890–891
overview of, 869
persisting changes, 889–894
populating, 887–889
schema generation, 874–876
summary, 899–900
tiered development, 894–895
updating existing rows, 892
updating with data adapters, 889–890
writing XML output, 890–894
XML schemas, 881–887
DataTable, 849
DataTableMapping, 849
DataTemplate
for ListBox control, 1179–1180
with WPF, 1205–1206
DataView
displaying data from, 1042–1043
properties, 1389–1390
DataViewManager, 1047
DataViewRowState, 1043–1044
date formats, cultures, 643–644
dates
customizing calendar control, 1239–1242
in data binding, 1245
DateTime property, custom composite activity, 1558–1559
DateTimeFormatInfo, culture settings, 642
DateTimePicker control, 1003
DaysOfWeekActivity
adding Designer to composite activity, 1561
creating, 1558–1559
DC (device context), 1075–1076
DCOM (Distributed COM), 1373
DCs (domain controllers)
held in sites, 1587
multimaster replication and, 1584
overview of, 1586
server name for binding, 1596
DDX (Dialog Data Exchange), 1052
dead-letter queues, 1488, 1492–1493
deadlocks
lock statement for synchronizing multiple threads, 565–571
Monitor class for releasing, 572–573
thread issues and, 563–564
Debug configuration, Visual Studio 2005, 425
debugging
configuration files, 1435–1436
debug and release builds, 423
debugger symbols in Visual Studio 2005, 424
of graphics with GDI+, 1087–1088
language interoperability and, 9
.NET Remoting configuration, 1435
source code commands in Visual Studio 2005, 424–425
Visual Studio 2005 debugger, 397
decimal types, predefined value types, 43–44
declarations, template, 1246
declarative security
code access, 613
role-based, 635–636
DeclarativeCatalogPart control, 1291, 1298
declaring arrays, 133, 139
decrement (--) operator, 158
DeepCopy( ) method, transactional resources, 702
default context, 1405
default keyword, 252
default naming context, Active Directory binding, 1597–1598
default values, generic classes, 252
deference operator (*), 333
deferred query execution, Language Integrated Query, 1695–1697
#define, 71–72
DelayActivity
overview of, 1547–1548
in sequential workflows, 1565
Delegate class
creating threads, 549
Visual Basic, 1646–1647
delegate keyword, 1645–1647
delegates.
See also events
anonymous methods, 201–202
BubbleSorter example, 205–207
in C#, Visual Basic and C++/CLI, 1645–1647
declaring, 196–197
event generation by, 215–218
event implementation, 196, 212
EventHandler delegate, 213
generic. See generic delegates
inference, 200–201
multicast, 208–211
.NET Remoting and, 1441–1442
overview of, 195–196
polling, 549–550
SimpleDelegate example, 202–204
summary, 219
threading and, 549
working with, 198–200
delegation, .NET Remoting security and, 1443
delete constraints, 880–881
DELETE statements
ExecuteNonQuery( ) used for, 859
invoking Dispose method in C++/CLI, 1643
DeleteSubKey( ) method, 833
deleting files, 799–804
deleting region records, from database, 864
deleting rows, 892
deleting XML content, 979
DemoDelegate, 1645–1647
dependency properties, 1137, 1559
DependentTransaction class, 683, 689–691
deploying applications, 441–468
ClickOne, 459–462
client from Web Server, 458
Copy Web tool, 446
Custom Actions editor, 465–467
designing for, 441–442
File System Editor, 462
File Types editor, 463
installation packages for, 448
Launch Condition editor, 467–468
.NET runtime and, 444
NTD (no-touch deployment), 458–459
options for, 442–443
overview of, 441
publishing Web sites, 446
Registry Editor, 462–463
requirements, 443–444
simple deployment, 444–445
SimpleClientApp solution, 448–456
SimpleWebApp solution, 456–457
summary, 468
User Interface editor, 463–465
Visual Studio 2005 advanced options, 462
Visual Studio 2005 installer projects, 446–447
Windows Installer, 447–448
xcopy, 445–446
deployment, Enterprise Services, 1461–1463
derived classes, casts between base class, 187
design view editor, Visual Studio 2005, 395–396
Design View window, Visual Studio 2005, 415–418
Designer
adding to composite activity, 1559–1562
in WriteLineActivity, 1554–1555
.Designer file
creating database connection, 1060–1061
creating Windows Form applications, 990–991
selecting data, 1062
destruction, form, 1017–1020
destructors
IDisposable interface as alternative to, 327
memory management and, 325–326
using in conjunction with IDisposable interface, 328–330
developers
cooperating on XAML code with designers, 1138–1140
designing Windows applications, 1138
device context (DC), 1075–1076
device coordinates, 1094–1095
DHTML (Dynamic HTML), 1303
Dialog Data Exchange (DDX), 1052
dialogs, Windows Vista
File Open and Save, 1664–1666, 1668
TaskDialog, 1662–1663
dictionaries, 299–311
classes, 305–306
example, 301–305
key type, 299–301
multiple keys, 306–311
overview of, 299
Dictionary<TKey, TValue> class, 299, 305
DiffGrams, reading and writing, 941–943
directional attributes, 1425
directories
defining themes in App_Themes directory, 1285–1286
example of browsing, 794–799
folders vs., 790
reading ACLs from, 826–827
securing, 1281–1282
structure in Windows Vista, 1658–1660
Directory class, 790, 791
directory configuration, assemblies
<codeBase> directory, configuring, 519–520
overview of, 519
<probing> directory, configuring, 520–521
directory services. See Active Directory
Directory Services Markup Language. See DSML (Directory Services Markup Language)
DirectoryEntries class
creating new objects, 1603–1605
defined, 1595
DirectoryEntry class
accessing native ADSI objects, 1605–1606
Active Directory binding with, 1599–1600
defined, 1595, 1603
getting directory entries, 1600–1601
object collections, 1601–1602
DirectoryInfo class
defined, 790
file browser example, 794, 798
moving and deleting files or folders, 799
representing files or folders through, 791
DirectorySearcher class, 1595
dirty reads, transaction isolation and, 695–696
disconnected record sets, 850–851
DisplayAtStartup application, 1076–1079
DisplayFile( ) method, ReadWriteText application, 820
DisplayImage application, 1103–1104
DisplayText application, 1106–1108
Dispose( ) method, 327–330
creating Windows Form application, 991
IDisposable, 855–856, 1642–1643
overriding Finalize( ) method, 1644–1645
SelfPlacingWindow application using, 837–838
distinguished name (DN)
Active Directory binding, 1597–1598
specifying username with, 1599
Distributed COM (DCOM), 1373
distributed identity, of remote objects, 1407
Distributed Transaction Coordinator (DTC), 1456
distributed transactions, Enterprise Services, 1456
distributing code
certificates, 623–630
strong names, 622–623
DLLs
DLL hell, 472–473
side-by-side feature, in Windows 2000, 471
DN (distinguished name)
Active Directory binding, 1597–1598
specifying username with, 1599
Dns class, 1360
DNS names, 1358–1361
DnsLookup example, 1360–1361
IP addresses and, 1358–1359
.NET classes for IP addresses, 1359–1360
DnsLookup, 1360–1361
Dock property, 995–996
DockPanel, 1155–1156
commands, 1159–1160
Document Object Model. See DOM (Document Object Model)
DOM (Document Object Model)
Ajax core technology, 1302–1304
implementation in .NET, 914–916
XML standards support for, 902
XmlDocument class, 916–920
domain controllers. See DCs (domain controllers)
domain trees, Active Directory, 1587
domains, Active Directory, 1586
done bit, transactions, 1468
DoSomethingResponse, WSDL, 1376
DoSomethingResult, WSDL, 1376
dot product, multiplication of vectors, 176–177
doubles, 173
do…while loops, in Visual Basic, 54, 1637–1638
do…while statement, in C# and C++/CLI, 1637–1638
downlevel logon, 1599
DownloadFile( ) method, 1340
DrawImage( ) method, 1106
drawing
scrollable windows, 1088–1094
shapes, 1076–1079
shapes and lines, 1100–1102
shapes in WPF, 1144–1147
text in GDI+, 1106–1108
using clipping region, 1080–1082
DrawShapes application
drawing scrollable windows, 1088–1094
painting shapes using OnPaint( ), 1080
using clipping region, 1080–1082
DrawString( ) method, 1107, 1120
DriveInfo class, 790, 822–824
drives, reading information on, 822–824
DSML (Directory Services Markup Language)
accessing Active Directory, 1615
classes in System.DirectoryServices.Pr otocols, 1616
defined, 1594
searching for Active Directory objects, 1616–1618
DTC (Distributed Transaction Coordinator), 1456
dumps, configuring with Component Services Explorer, 1464
duplex communication, WCF, 1534, 1538–1540
DuplexChannelFactory class, 1540
durability, ACID properties, 677
DWORD blocks, 334
Dynamic HTML (DHTML), 1303
dynamic resources, 1166–1167