Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

Pro CSharp 2008 And The .NET 3.5 Platform [eng]

.pdf
Скачиваний:
71
Добавлен:
16.08.2013
Размер:
22.5 Mб
Скачать

1362 I N D E X

sn.exe, strong name utility, 505–507 *.snk file, 1297, 1310, 1324 SoapFormatter, serialization, 719 SoapFormatter type, 714, 717 Social Security number (SSN), 92 SocialSecurityNumber property, 169 SolidColorBrush object, 1127 SolidColorBrush type, 1107, 1127 <SolidColorBrush> element, 1128 Solution Explorer, 53, 926

Sort( ) method, 119

SortedList System.Collections class type, 312 sorting and paging example, ASP.NET, 1227 SoundPlayerAction control, 1056

Source attribute, 1114 Source property, 1132, 1145 SpeedRatio property, 1138

SpeedUp( ) subroutine name, 142 SpellCheck.IsEnabled property, 1081 SpellingError object, 1082 SpinButtonWithLinearKeyFrames.xaml file, 1144 Split( ) method, 87

/sprocs option, 848

SqlCommand object, 812, 830, 853 SqlCommand type, 812, 843 SqlCommandBuilder property, 812 SqlConnection type, 843 SqlConnectionStringBuilder type, 846 SqlDataAdapter member variable, 811 SqlDataAdapter object, 813 SqlDataAdapter type, 834, 843 SqlDataSource type, 1224 sqlmetal.exe utility, 848, 850–851, 855 sqlmetal.exe-generated code, 852 SqlParameter object, 830 SqlParameter type, 812 SqlProfileProvider, 1273

square brackets ([ ]), 215, 1295

Stack System.Collections class type, 312, 315 stackalloc keyword, 409–410

stack-based programming, 620–621 StackPanel control, 1056, 1065 StackPanel objects, 1079 StackPanel panel control, 1085

<StackPanel> element, 1071, 1082, 1104, 1111 StackTrace property, 76, 222, 228 StartAddress, ProcessThread type, 568 StartLineCap controls, 1130

StartPosition property, 972 StartType property, 907 Startup event handler, 1013

StartupEventArgs delegate, 1012 StartupEventArgs parameter, 1015 StartupEventHandler delegate, 1012 StartupLocation.CenterScreen value, 1027 StartupUrl property, 1006, 1023, 1026

state data, multithreaded applications, 592–593 state machine workflows, 923

state management techniques application cache, 1259 application level state data, 1255 application shutdown, 1258 applications vs. sessions, 1254 ASP.NET profile API

accessing profile data programmatically, 1274–1277

ASPNETDB database, 1272–1273 defining user profile within web.config,

1273–1274

grouping profile data and persisting custom objects, 1277–1279

overview, 1272

control state, state management, 1251 cookies creation, 1267

cookies overview, 1267

custom view states, state management, 1250 data caching, 1259–1263

Global.asax file, 1251–1253 HttpApplication type overview, 1245 HttpSessionState members, 1266 maintaining session data, 1263–1266 modifying application data, 1257–1258 overview, 1245

per user data stores, 1263–1266 persistence of cookies, 1267

problems in state management, 1245–1247 reading cookies, 1268–1269

role of <sessionState> element, 1269–1271 session cookies, 1267

session data, 1263–1266 view state, 1248–1250 Web.config, 1269–1270

State property, 757, 892 StateBag type, 1250

stateConnectionString attribute, 1270 stateless wire protocol, 1164, 1245 [STAThread] attribute, 965

static assemblies, 648 static classes, 171, 424, 429

static keyword, 70, 152, 154–155, 157–158 StaticResource markup extension, 1107, 1149, 1152 StatusBar control, 1056

StatusBar type, 1096

StatusCode property, HttpResponse Type, 1199 StatusDescription property, HttpResponse Type,

1199 storeadm.exe utility, 701

stored procedures using DbCommand, ADO.NET, 768

Storeyboard.TargetName value, 1143 <Storyboard> element, 1141 Storyboard.TargetProperty value, 1143 Stream class, System.IO, 675–676 StreamReader, StreamWriter, 677, 680 Stretch property, 1125

String class, 217

 

I N D E X

1363

string data type, 81, 87, 141

style sheets, 1237

 

string keyword, 85

<Style> element, 1148

 

String parameter, 193

StyleWithTriggers.xaml file, 1153

 

string variable, 87, 811, 1300

subclasses, 206

 

<StringAnimationUsingKeyFrames> element, 1143

subject matter experts (SMEs), 918

 

StringAreImmutable( ) method, 92

Submit button, 1174, 1234

 

StringBuilder class, 93

SubmitChanges( ) method, 856

 

String.Concat( ) method, 88

submitting form data, ASP.NET, 1174–1175

 

StringDictionary member,

subroutines and functions, defining, 111

 

System.Collections.Specialized

subset data type, 420

 

Namespace, 316

subset variable, 451–452

 

StringEnumerator member,

subsystem directive, common intermediate

 

System.Collections.Specialized

language (CIL), 630

 

Namespace, 316

Subtract( ) method, 432, 1288, 1308

 

String.Format( ) method, 79

Suggestions property, 1082

 

StringFormat type, 987

sum keyword, 97

 

String.Length property, 103

<summary> code comment, XML Elements, 177

 

StringReader, StringWriter, System.IO, 680

SuppressContent property, HttpResponse Type,

 

StringWriter, StringReader types, input/output,

1199

 

System.IO, 662

Suspend( ) method, Thread type, 595

 

Stroke property, 1125

SuspendActivity, WF, 921

 

StrokeDashArray property, 1125

*.svc file, 878, 915

 

StrokeEndLineCap property, 1125

SvcConfigEditor.exe utility, 883, 902

 

StrokeThickness property, 1125

svcutil.exe tool, 894, 896–897

 

strong names of assemblies, 481, 490, 505–508

SyncDelegateReview program, 586

 

struct keyword, 126

Synchronization attribute, 579, 608

 

structure types, 18

synchronizing threads, 589–590

 

structured exception handling

synchronous delegate call, 342

 

advantages, 221

Sysem.Windows.Shapes.Shape namespace, 1119

 

application-level exceptions, 231, 233–234

System namespace, 70, 80–81, 94, 100, 125, 459,

 

bugs, description, 219

1184

 

catching exceptions, 225–226

System.Activator class, late binding, 540

 

configuring exception state, 226

System.AppDomain class

 

custom exceptions, 231, 233–234

AssemblyLoad event, 573

 

entities used in, 221

AssemblyResolve event, 573

 

exceptions, description, 219

BaseDirectory( ), 572

 

finally block, 239–240

CreateDomain( ), 572, 574

 

generic exceptions, 224, 238

CreateInstance( ), 572

 

inner exceptions, 239

DomainUnload event, 573

 

keywords used, 221

ExecuteAssembly( ), 572

 

multiple exceptions, 236–237

GetAssemblies( ), 572

 

overview, 219

GetCurrentThreadId( ), 572

 

possible .NET exceptions, 240

Load( ), 572, 575

 

rethrowing exceptions, 238

ProcessExit event, 573

 

simple example, 222, 224–226

ResourceResolve event, 573

 

System.Exception, 221–222, 224–226

TypeResolve event, 573

 

system-level exceptions, 230–231

UnhandledException event, 573

 

System.Serializable attribute, 235

Unload( ), 572, 576–577

 

template, exception, 235

System.ApplicationException, structured

 

throwing an exception, 224–225

exception handling, 231, 233–234

 

traditional exception handling, 220

System.Array class, 73, 107, 111, 119, 450, 454, 471,

 

try/catch block, 225–226

1303

 

typed exceptions, 241

System.Boolean data type, 85, 136

 

unhandled exceptions, 241

System.Boolean structure, 82

 

user errors, description, 219

System.Char type, 86

 

Visual Studio 2005 features, 240, 242–243

System.Collection.ArrayList, indexer methods, 384

 

structures, common intermediate language (CIL),

System.Collections, 458

 

632–633

 

 

com/.apress.http://superindex at faster it Find

1364 I N D E X

System.Collections class types, 312 ArrayList, 312–313

Hashtable, 312 Queue, 312, 314–315 SortedList, 312 Stack, 312, 315

System.Collections interfaces, 310–311 System.Collections namespace, 305, 320, 690 System.Collections.ArrayList, 1278 System.Collections.Generic namespace, 309, 316,

456

System.Collections.Generic.EqualityComparer<T> type, 443

System.Collections.Generic.List<>, 324–326 System.Collections.ObjectModel namespace, 1110 System.Collections.Specialized.ListDictionary,

indexer methods, 386 System.ComponentModel namespace, 850, 973 System.ComponentModel.Component class, 968 System.Configuration namespace, 521 System.Configuration.dll file, 816 System.Console class, 76, 78 System.ContextBoundObject, 578–579 System.Core namespace, 846

System.Core.dll assembly, 449, 451, 459, 837, 840 System.Data, ADO.NET, 737

System.Data namespace, 783, 809, 839 System.Data.Common namespace, 810 System.Data.Common.DataTableMapping type,

810

System.Data.DataSetExtensions.dll assembly, 449, 837, 839–840

System.Data.DLinq.dll assembly, 449 System.Data.Extensions.dll assembly, 449 System.Data.Linq namespace, 844, 846 System.Data.Linq.dll assembly, 449, 837, 844, 849,

854

System.Data.Linq.Mapping namespace, 843–844 System.Data.SqlClient namespace, 809, 1182 System.Delegate base class, 344–345 System.Diagnostics namespace, 564 System.Diagnostics.Process, 564–565 System.Diagnostics.Process.ExitCode property, 71 SystemDirectory property, 76

System.Drawing namespace, 986, 992 System.Drawing.dll, 985, 999 System.Drawing.Drawing2D namespace, 986, 989 System.Drawing.Graphics class, GDI+, 987 System.Drawing.Imaging namespace, 986 System.Drawing.Printing namespace, 986 System.Drawing.Text namespace, 986 System.EnterpriseServices namespace, 869

System.Enum class, 123–124

System.Environment class, 75 System.Environment type, 74–75 System.EventArgs argument, 932, 960 System.EventHandler, 932, 960, 1185

System.Exception, 1253

Data property, 222, 229–230 HelpLink property, 222, 228–229 InnerException property, 222 Message property, 222, 234 StackTrace property, 222, 228 TargetSite property, 222, 227

System.GC, 252–255 System.Guid, 297–299, 786

System.IdentityModel.dll assembly, 876 System.Int32 data type, 129 System.Int32 enumeration, 121 System.Int32 type, 426, 431

System.IO namespace, 687, 996 System.IO type, 709 System.IO.FileMode enumeration, 704

System.IO.IsolatedStorage namespace, 687, 698, 704

System.IO.IsolatedStorage type, 702, 710 System.IO.Pipes namespace, 873 System.Linq namespace, 449 System.Linq.Enumerable type, 454, 459, 462 System.MarshalByRefObject class, 968 System.Messaging namespace, 869

System.MulticastDelegate class, 344–345, 1304 System.MulticastDelegate/System Delegate

members, 345 System.Net.PeerToPeer namespace, 873 System.Net.Sockets namespace, 873 System.Nullable<T> structure type, 139 System.Object

overriding System.Object.Equals( ), 215–216 overriding System.Object.GetHashCode( ),

216–217

overriding System.Object.ToString( ), 215 overview, 212–214

shared members of, 218

testing modified person class, 217 System.Object class, 84, 129, 529, 960, 968, 1073 System.Object event, 975

System.Object type, 431, 441, 1075 System.Object.Equals( ) method, 215–216, 393 System.Object.GetHashCode( ) method, 216–217 System.Object.GetType( ) method, 117 System.Object.ToString( ) method, 215 SystemPens type, 987

System.Query.dll assembly, 449 System.Query.Func<A0, T> delegate types, 460 System.Random member variable, 153 System.Reflection namespace, 528, 530, 690,

1297–1298

System.Reflection.Emit namespace, 424, 617, 648–649, 687

System.Reflection.Emit.ILGenerator, 649–650 System.Runtime.InteropServices namespace, 1306 System.Runtime.Remoting namespaces, 869 System.Runtime.Serialization namespace, 876, 880

System.Runtime.Serialization.dll assembly, 876, 880, 910

System.Runtime.Serialization.Formatters.Binary namespace, 996

System.Runtime.Serialization.XmlFormatter type, 910

System.Security.Policy namespace, 689 System.Serializable attribute, structured exception

handling, 235

System.ServiceModel namespace, 873, 876, 880, 885, 888

<system.serviceModel> element, 889, 914 System.ServiceModel.ClientBase<T> class, 897 System.ServiceModel.Configuration namespace,

876

System.ServiceModel.Description namespace, 876 System.ServiceModel.dll assembly, 876, 885, 888,

904

System.ServiceModel.MsmqIntegration namespace, 876

System.ServiceModel.Security namespace, 876 System.String attribute, 1274

System.String class, 69, 93 System.String type, 92, 416, 1077 System.SystemException, 230–231 System.Text namespace, 93 System.Text.StringBuilder class type, 69 System.Threading namespace, 1258

Interlocked type, 594 Monitor type, 594 Mutex type, 594

ParameterizedThreadStart delegate, 594, 597–598, 600–601

Semaphore type, 594 Thread type, 594

ThreadPool type, 594, 610, 612 ThreadPriority enum, 594 ThreadStart delegate, 594, 598–599 ThreadState enum, 594

Timer type, 594

TimerCallback delegate, 594, 609–610 System.Threading.Thread, 1327 System.Type class, 528–530

System.Uri types, 890 System.ValueType class, 84, 129, 274–275

System.Web namespace, ASP.NET 2.0, 1179 System.Web namespace, Core ASP.NET Web-

centric, 1179 <system.web> element, 1239, 1273

System.Web.Caching namespace, 1179 System.Web.Caching.Cache object, 1259 System.Web.Hosting namespace, 1179 System.Web.HttpApplication class, 1252–1253 System.Web.HttpCookie type, 1267 System.Web.Management namespace, 1179 System.Web.Profile namespace, 1179 System.Web.Security namespace, 1179 System.Web.Services namespace, 870

I N D E X 1365

System.Web.SessionState namespace, 1179 System.Web.UI namespace, 1179 System.Web.UI.Control class, 1250 System.Web.UI.Control in ASP.NET, 1209–1210 System.Web.UI.HtmlControls namespace, Core

ASP.NET Web-centric, 1179 System.Web.UI.HtmlControls widget, 1214 System.Web.UI.Page class, 1194, 1248 System.Web.UI.Page type, 1253 System.Web.UI.Page-derived type, 1200, 1263 System.Web.UI.Page.Request property, 1196 System.Web.UI.StateBag type, 1250 System.Web.UI.TemplateControl class, 1194 System.Web.UI.WebControls namespace, 1179,

1207–1208 System.Web.UI.WebControls.Panel class, 1210 System.Web.UI.WebControls.WebControl.

WebControl class, 1208 System.Web.UI.x namespace, ASP.NET 2.0, 1179 System.Window.Application class type, 1006 System.Windows namespace, 1005, 1123 System.Windows.ContentControl class, 1008

System.Windows.Controls namespace, 1005, 1014, 1059, 1084

System.Windows.Controls.Button type, 1157 System.Windows.Controls.ContentControl class,

1007–1008 System.Windows.Controls.Control class,

1008–1009 System.Windows.Controls.Primitives namespace,

1071

System.Windows.Data namespace, 1106 System.Windows.DependencyObject class, 1010,

1063 System.Windows.DependencyProperty class type,

1062

System.Windows.Documents namespace, 1083 System.Windows.Forms namespace, 270, 956, 1208 System.Windows.Forms.ColorDialog type, 994 System.Windows.Forms.ContainerControl class,

969 System.Windows.Forms.Control class, 958,

968–969

System.Windows.Forms.dll assembly, 955, 999 System.Windows.Forms.Form class, 969 System.Windows.Forms.Form file, 983 System.Windows.Forms.Form-derived type, 1013 System.Windows.Forms.MouseEventHandler

delegate, 975 System.Windows.Forms.ScrollableControl class,

968 System.Windows.Input.KeyEventHandler delegate,

1020

System.Windows.Markup namespace, WPF, 1005 System.Windows.Media namespace, 1005, 1123 System.Windows.Media.Animation namespace,

1117, 1137, 1142 System.Windows.Media.Brush namespace, 1127

com/.apress.http://superindex at faster it Find

1366 I N D E X

System.Windows.Media.Color type, 1127 System.Windows.Media.Drawing abstract class,

1119 System.Windows.Media.Drawing class, 1130

System.Windows.Media.Drawing namespace, 1118 System.Windows.Media.Geometry base class, 1131 System.Windows.Media.Shapes types, 1131 System.Windows.Media.Timeline base class, 1138 System.Windows.Media.Visual class, 1010, 1120 System.Windows.Media.Visual namespace, 1118 System.Windows.Navigation namespace, WPF,

1005 System.Windows.RoutedEventArgs parameter,

1064

System.Windows.Shapes namespace, 1005, 1118, 1124

System.Windows.Threading.DispatcherObject class, 1011

System.Windows.UIElement base class, 1010 System.Windows.Window type, 1006 System.Workflow.Activities namespace, 921, 924 System.Workflow.Activities.dll core assembly, 924 System.Workflow.ComponentModel.dll core

assembly, 924 System.Workflow.Runtime namespace, 924 System.Workflow.Runtime.dll assembly, 924 System.Workflow.Runtime.Hosting namespace,

924

System.Xml namespace, 448, 1115 System.Xml.dll assembly, 858 System.Xml.Linq namespace, 859, 862 System.Xml.Linq.dll assembly, 449 System.Xml.XLinq.dll assembly, 449

T

\t character, 89 TabControl control, 1056

TabIndex property, 969, 981, 1213 TabIndex value, 1114

Table property, 787, 790 [Table] attribute, 845, 847 TableAdapter component, 824 TableAdapterManager type, 834 TableAttribute type, 845 TableMappings property, 810 TableName member, 793 TableName property, 811 Tables property, 784–785

Table<T> member variables, 846 Table<T> type, 856 Table<T>-compatible property, 852 TabStop property, 969, 981

Tag property, 1080 /target: flag, 1321

Target property, System.MulticastDelegate/System Delegate, 345

/target:exe option, 957 TargetProperty property, 1141

*.targets files, 1023, 1025

TargetSite property, System.Exception, 222, 227 TargetType property, 1151–1152

template, exception code expansion, 235 Template property, 1156, 1159 templating services, 1008

temporary cookie, 1267 TerminateActivity, WF, 921 TesterUtilClass class, 425

Text property, 960, 970, 1107, 1197, 1200, 1212, 1214

TextBlock type, 1096

TextBox control, 980, 1056, 1209 TextBox type, 817, 1081, 1102, 1105, 1152 TextBox widget, 1210, 1232 TextBoxStyle style, 1152

TextChanged event, 1209 TextPad development editor

configuring for C#, 42–43 executing programs, 44 predefined run commands, 45

TextWriter, System.IO, 678–679

Theme, Page Type properties, ASP.NET, 1195 Theme property, Page Type, 1195

themes, 1178

* skin files, 1238–1239 applying at page level, 1240 applying sitewide, 1239–1240

assigning programmatically, 1241–1242 overview, 1237

SkinID property, 1240 Thickness property, 1130 this keyword, 147, 149, 425

this[ ] syntax, indexer methods, 384 Thread class, 583

Thread type, 594–597

ThreadPool type, System.Threading Namespace, 594, 610, 612

threads

example code, 566–567 multithreading, 562 overview, 562

suspended during garbage collection, 248 Thread Local Storage (TLS), 563

time slice, 563

ThreadStart delegate, System.Threading namespace, 594, 598–599

ThreadState method, Thread type, 595 ThreeDCircle type, 209 ThrowActivity, WF, 921 ThrowException( ) method,

System.Reflection.Emit.ILGenerator, 650 time slice, 563

Timeout property, 1266 Timer control, 609

TimerCallback delegate, System.Threading namespace, 594, 609–610

TimeSpan object, 1139–1140 TimeSpan structure, 94 Title property, 76, 1066 <title> tags, 1169

*.tlb file, 1292, 1311 /tlb flag, 1310

tlbimp.exe utility, 1296–1298, 1301, 1304 To property, 1138–1139

ToArray<T>( ) method, 456, 471 ToDictionary<K,T>( ) method, 456 ToggleButton control, 1056 ToList<T>( ) method, 456 ToLower( ) method, 89

ToolBar control, 1056 <ToolBar> type, 1096 <ToolBarTray> element, 1096

ToolsSpellingHints_Click( ) method, 1095 ToolStripMenuItem type, 959–960 ToolTip control, 1056

ToolTip property, WebControl base class, 1213 Top property, 1086

ToString( ) method, 123, 213–216, 441–443, 464, 467, 845, 1077, 1079, 1111

TotalProcessorTime, ProcessThread type, 568 ToUpper( ) method, 89, 92

Trace attribute, 1189 <%@Page%> directive, 1184

trace element, Web.config, ASP.NET, 1204 Trace property, 1189, 1195

<trace> element, web.config File, 1204 tracing support, 1189

Tracking services, WF, 920

Transaction object, ADO.NET data providers, 734 Transaction services, WF, 920

Transform abstract base class, 1134 Transform property,

System.Windows.Media.Geometry base class, 1131

<TransformGroup> type, 1135–1136 TreeView control, 1056, 1220 TreeView type, 1220

<Trigger> element, 1142 Trim( ) method, 87

triple tick (''') code comment notations, 177 try keyword, 98

tunneling event, 1065 TwoWay mode, 1105 txtColor control, 980 txtMake control, 980 txtPrice control, 980 type attribute, 1171, 1278

Type attribute, Profile Data, 1274 Type class, 905

type constructors, CIL, 636–637 Type Libraries node, 1294

type library, 1292 type parameters, 309

I N D E X 1367

type reflection AssemblyRef, 526 description, 527

external private assemblies, 536–537 fields and properties, 531 implemented interfaces, 531

and metadata, 523–526

method parameters and return values, 534–535 methods, 530–531

overview, 523

shared assemblies, 538–539 TypeDef, 524–525

TypeRef, 524–525

User Strings, 527

typed exceptions, structured exception handling, 241

TypeDef, 524–525 TypedTableBaseExtensions type, 840

TypeDumper.DumpTypeToFile( ) method, 1327 typeof operator, 123, 530

TypeRef, 524–525

TypeResolve event, System.AppDomain, 573 types, five categories of, 17

U

UI elements, 1001

UIElement base class, 1010, 1132 UIElement element, 1119

uint data type, 80 ulong data type, 80

Unadvise( ) method, 307 unbound type parameters, 334 Unchanged value, 791 Unchecked events, 1070 unchecked keyword, 69, 97, 100

#undef, preprocessor directive, 411, 413–414 unhandled exceptions, structured exception

handling, 241

UnhandledException event, System.AppDomain, 573

UninstallSqlState.sql file, 1271 unique name/value type pairs, 444 Unique property, 787

Unload event, Page type, 1201

Unload( ) method, System.AppDomain, 572 Unlock( ) method, HttpApplicationState type, 1255 unmanaged code, 1283

unmanaged resources, 252, 256–263 unsafe compiler flag, 405

unsafe keyword, 405–407 Update( ) method, 808

UpdateCarInventory( ) method, 1261 UpdateCheck property, 848 UpdateCommand property, 812 UpdateInventory( ) method, 813–814

updating applications using shared assemblies, 512

com/.apress.http://superindex at faster it Find

1368 I N D E X

updating records, ADO.NET, 765 Uri class, 905

user errors, description, 219

user interface in HTML, 1170–1171 /user option, 848

UserControls, 1216

UserHostAddress member, HttpRequest Type, 1196 UserHostName member, HttpRequest Type, 1196 UserName property, 76

userName string member variable, 929 UserShoppingCart class, 1264 UserTheme session variable, 1242 ushort data type, 81

using keyword, 261–262, 478–479 UsingNamespace( ) method,

System.Reflection.Emit.ILGenerator, 650

V

ValidateInput( ) method, HttpRequest type, 1196 validating form data, ASP.NET, 1174

validation controls, ASP.NET CompareValidator control, 1231, 1233 CustomValidator control, 1231 defining validation groups, 1235–1236 RangeValidator control, 1231, 1233

RegularExpressionValidator control, 1231, 1233 RequiredFieldValidator control, 1231–1232 ValidationSummary control, 1231, 1234

validation schemes, 1168 ValidationExpression property, 1233

ValidationSummary control, ASP.NET, 1231, 1234 ValidationSummary widget, 1234

value and reference types, conversion, 316 Value property, 137, 767, 1214

value types, 107, 136, 316

<value> code comment, XML Elements, 177 value-based semantics, 215, 444 ValueChange event, 1103

var keyword, 415, 417, 441, 470 variables, local, CIL, 640 Variant data type, 419, COM VARIANT types, 1298

variant-compliant data type, 1283 VB 2005 class type, 141–144

VB6 language deficiencies, 4 VB6 String data type, 1290 Vb6ComCarServer.dll, 1301 vbnc compilers, 1321 VBScript support, 1173 vector graphics, 1002 verbatim string, 90

VerifyDuplicates( ) method, 434–435 version number of assemblies, 481 Vertical property, 1088 VerticalAlignment property, 1156 VeryComplexQueryExpression type, 464 VideoDrawing type, 1130

View Class Diagram button, Solution Explorer window, 190

View In Browser menu option, 1183 view state, 1212, 1248–1250 Viewbox control, 1056

/views option, 848 VIEWSTATE field, 1248, 1250

ViewState property, 1250–1251, 1256 virtual directory, 1165

virtual execution stack, 620 virtual keyword, description, 199 virtual member, 162, 201

virtual methods, 200, 204

Visible member, System.Web.UI.Control, 1210 Visible property, System.Web.UI.Control in

ASP.NET, 1210

Visual Basic 2005 benefits and features, 8–9 Visual Basic .NET integration with C#, 494–495,

498

Visual Basic snap-in example, 555 Visual C# Express, 51–52

Visual Studio 2003, 36 Visual Studio 2005, 366–367 Visual Studio 2008

additions available, 52–53 automated coding support, 58

building WPF applications using, 1044–1048 Class View, 55

code refactoring support, 56 FxCop, 65

integrated Help system, 64 interface implementation, 282 Lutz Roeder’s Reflector for .NET, 65 NAnt, 65

NDoc, 65

.Net Framework Documentation system, 63–64 New Project dialog box, 53

Nunit, 65

Object Test Bench, 62 overview, 52

project configuration (Project Properties), 55 refactoring example, 57

refactoring techniques available, 56–57 Snippets automated coding, 58 Solution Explorer, 53

Surround With automated coding, 58 Visual Class Designer, 59–62

VisualBrush type, 1127

VisualChildrenCount read-only property, 1122 Visual-derived types, 1120, 1123

void return value, 71 /vpath: option, 1167

W

WaitReason, ProcessThread type, 568

WCF client, 879

WCF Service assembly, 879

WCF Service host, 879

WcfTestClient.exe application, 915

web applications in ASP.NET, 1203–1204, 1207 web controls in ASP.NET, 1207–1209

web enhancements, .NET 3.5, 1178

web page code model, ASP.NET, 1179, 1181 web paradigm, 1177

web parts, 1178

Web Service Description Language (WSDL), 895 Web Services Enhancements (WSE) 3.0, 873 Web Site template, 1190

web-centric primer, 1177 Web.config, ASP.NET, 1204, 1269–1270

Web.config file, 878, 913–914, 1163, 1178, 1188, 1191, 1203–1204, 1271–1272, 1274

WebControl class properties, ASP.NET, 1213 WebDev.WebServer.exe utility, 1166–1167, 1178,

1183

WebMethod attribute, 543, 870 WebService directive, 871 WebServiceFaultActivity, WF, 921 WebServiceInputActivity, WF, 921 WebServiceOutputActivity, WF, 921

website administration utility, ASP.NET, 1205–1206 website directory structure, ASP.NET, 1190 Web.sitemap file, 1219

where keyword, generics, 335 Where( ) method, 461

where operator, 463, 466 Where<T>( ) method, 461 While activity, 928–930 while loop, 101, 795 WhileActivity, WF, 921 widening, 95

widgets, 1169, 1248 Width member, 1061

Width property, 1085, 1137, 1213 Width value, 1087

Win 32 binaries (*.dll or *.exe), 11 Win32 file header in assemblies, 482 Window class

overview, 1006–1007 System.Windows.Controls.ContentControl base

class, 1007–1008 System.Windows.Controls.Control base class,

1008–1009 System.Windows.DependencyObject base class,

1010

System.Windows.Media.Visual base class, 1010 System.Windows.Threading.DispatcherObject

base class, 1011 System.Windows.UIElement base class, 1010

Window object

closing of, 1018–1019 lifetime of, 1017–1018

Window type, 1083, 1094, 1103, 1113, 1118 <Window> element, 1022, 1032, 1084, 1113, 1154 Window1 type, 1108

Window-derived type, 1121

I N D E X 1369

WindowHeight property, 76 WindowLeft property, 76 <Window.Resources> element, 1149 Windows collection, 1016

Windows Communication Foundation (WCF), 867 Window’s constructor, 1060

Windows Distributed interNet Applications Architecture (DNA) deficiencies, 5–6

Windows Forms, 556–557, 999

Windows Presentation Foundation (WPF), 955, 1318. See also Application type; Window object

assemblies overview, 1005

role of Application class, 1006 role of Window class, 1006–1011

building WPF applications using Visual Studio 2008, 1044–1048

building XAML-free WPF applications creating simple user interface, 1013–1015,

1021

extending Window class type, 1013 overview, 1011–1013

controlling content layout using panels, 1108 Extensible Application Markup Language

(XAML)

attached properties, 1038–1039 Browser Applications (XBAPs), 1004

defining application object in, 1023, 1033 defining MainWindow in, 1022–1023 elements and attributes, 1035 experimenting with using XamlPad, 1032 markup extensions, 1039–1041 overview, 1021–1022

processing at runtime, 1048–1052 processing XAML files via msbuild.exe,

1023–1024

property-element syntax, 1036–1037 type converters, 1039

motivation behind overview, 999–1000

providing optimized rendering model, 1001 providing separation of concerns via XAML,

1001

separation of concerns using code-behind files, 1029–1030

transforming markup into .NET assembly mapping XAML to C# code, 1025–1026 overview, 1025

role of Binary Application Markup Language (BAML), 1026–1028

XAML-to-assembly process summary,

1028–1029, 1052

Windows property, Application type, 1006 Windows Vista operating system, 1001 Windows Workflow Foundation (WF)

assemblies and core namespaces, 924

brief word regarding custom activities, 951–952

com/.apress.http://superindex at faster it Find

1370 I N D E X

building blocks of

getting into flow of workflow, 925–926 integrated services of WF, 919 overview, 918–919

role of sequential workflows and state machine workflows, 921–923

WF activities, 920–921

building reusable code library, 948–951 building simple workflow-enabled application

adding Code activity, 927–928

adding custom start-up parameters, 931–935 adding While activity, 928–930

initial workflow code, 926–927 overview, 926

WF engine hosting code, 930–931 invoking web services within workflows,

934–935

motivation behind, 917–918 overview, 917

Windows Workflow toolbox, 920 Windows XP Home Edition and ASP.NET,

1166–1167

WindowsBase.dll assembly, WPF, 1005 Windows.Forms coding, 977 WindowsFormsDataTableViewer application, 799 WindowState property, 972

WindowTop property, 76 WindowWidth property, 76 WinFormsClientApp.cs file, 1328 Wizard definition, 1229

Wizard web control, 1228 worker thread, 562

WorkflowCompleted event, WorkflowRuntime, 931 workflow-enabled application, 918 WorkflowInstance core type, 930 WorkflowRuntime core type, 930 WorkflowTerminated event, WorkflowRuntime, 931 WrapPanel control, 1056, 1085, 1088

<WrapPanel> element, 1114

Write( ) method, 676, 678, 682, 1189, 1199 WriteAllBytes( ) method, 674 WriteAllLines( ) method, 674 WriteAllText( ) method, 674

WriteFile( ) method, 70, 153, 678, 1199 write-only class properties, 171 WriteOnly keyword, 165, 171 write-only property, 171 WriteTextToIsoStorage( ) method, 707 WriteXml( ) method, 796 WriteXmlSchema( ) method, 796 writing to a text file, 679

wsdl utility, 1322

wsdl.exe command-line tool, 872

WSDualHttpBinding class, 882 WSDualHttpBinding option, 881 WSFederationHttpBinding class, 882

WSFederationHttpBinding option, 881 WSHttpBinding class, 905 WSHttpBinding option, 881 WSHttpBinding protocol, 882, 901

X

X or x string format, .NET, 78 X property, 976

*.xaml file, 1024, 1028, 1055, 1129 XamlPad, 1031–1032

XAttribute member, 859 XAttributes object, 859

x/COL/Type markup extension, 1151 XComment member, 859

Xcopy deployment, 499 XDeclaration member, 859 XDocument member, 859 XDocument type, 860 XElement member, 858 XElement parameter, 864 XElement type, 860

XElement.Descendants( ) method, 863 XElement.Load( ) method, 863 XElements object, 859

XML

and ADO.NET, 731 /doc compiler flag, 179

documentation elements, 177

documenting VB 2005 source code via, 176–180 source code documentation, 176–177

*.xml file, 179, 1114 XmlDataProvider type, 1114 XmlElement type, 1115 xmlns attribute, 1168

XmlReader/XmlWriter models, 858 XmlSerializer, 716, 720–722 XName/XNamespace member, 859 XPath bindings, 1114

xPos member variable, 437 xsd utility, 1322

xsp2 utility, 1322

Y

y operators, 448 Y property, 976

yetAnotherPoint variable, 437 yield keyword, 292–293

yPos member variable, 437

FIND IT FAST with the Apress SuperIndex

Quickly Find Out What the Experts Know

Leading by innovation, Apress now offers you its SuperIndex, a turbocharged companion to the fine index in this book. The Apress SuperIndexis a keyword

and phrase-enabled search tool that lets you search through the entire Apress library. Powered by dtSearch, it delivers results instantly.

Instead of paging through a book or a PDF, you can electronically access the topic of your choice from a vast array of Apress titles. The Apress SuperIndexis the perfect tool to find critical snippets of code or an obscure reference. The Apress

SuperIndexenables all users to harness essential information and data from the best minds in technology.

No registration is required, and the Apress SuperIndexis free to use.

1 Thorough and comprehensive searches of over 300 titles

2 No registration required

3 Instantaneous results

4 A single destination to find what you need

5 Engineered for speed and accuracy

6 Will spare your time, application, and anxiety level

Search now: http://superindex.apress.com