Sunteți pe pagina 1din 8

Index

Index
BLOB....................................................................19-23
Browsable attribute ................................... 13-12, 13-26
A Brush .........................................................................4-7
Abstract Classes ..................................................... 6-20 BuildAction property.............................................13-12
Abstraction ............................................................... 6-2 Building Queries .....................................................14-9
AcceptChanges....................................................... 18-9 BUILTIN keyword................................................10-10
Add method .......................................................... 19-18 byte array...............................................................19-24
Add or Delete Attributes ........................................ 3-36
Add or Delete Elements.......................................... 3-32
Adding a Primary Key............................................ 16-6
C
Adding Items to a ListBox Programmatically ...... 19-18 Cascading Actions.................................................16-16
Adding Nodes......................................................... 3-30 Category attribute..................................................13-13
Adding Unique Constraints .................................... 16-4 CheckBox
AddWithKey Content Alignment.............................................1-14
MissingSchemaAction .................................... 14-21 Three-Value Logic .............................................1-13
Administering Isolated Storage ............................ 12-21 CheckBox Control...................................................1-12
AdministerIsolatedStorageByUser ....................... 12-23 CheckChanged ......................................................19-15
ADO.NET and XML .............................................. 20-2 CheckChanged Event ..............................................1-17
Aggregate Calculated Expressions ....................... 17-19 CheckedListBox Control.........................................1-25
Allowing Nulls ..................................................... 16-18 CheckedListBox.ItemCheck Event .........................1-26
Anchoring............................................................... 1-24 ChildNodes property ..................................... 3-10, 3-24
AppDomain .......................................................... 10-15 Cipher Text .............................................................8-17
AppendChild method..................................... 3-30, 3-33 Cipher-Block Chaining .............................................8-2
Application Security............................................. 10-12 ciphertext.................................................................8-19
Array .................................................................... 19-17 Cloning objects
Assemblies ............................................................. 2-14 MemberwiseClone method ..............................11-28
Private ............................................................... 2-15 Code Access Security Concepts ................................2-3
Signing an ......................................................... 2-22 Code Generated.....................................................19-10
Strong-Named ................................................... 2-15 Code Groups ................................................... 2-9, 9-22
Assembly Validation .............................................. 2-23 Code Groups and Evidence .....................................9-22
AssemblyIsolationByRoamingUser ..................... 12-24 Coding the DataAdapter........................................14-11
AssemblyIsolationByUser .................................... 12-23 ColorDialog.............................................................1-31
Assigning Commands to Stored Procedures......... 18-17 ColumnMappings..................................................14-17
Asymmetric Algorithms ........................................... 8-4 Columns.Add ..........................................................14-6
Asymmetric cryptography ........................8-2, 8-4, 8-13 ColumnStyles ..........................................................19-9
Attributes COM Interop .........................................................14-29
Declarative Permissions ...................................... 9-4 Combining Windows and Generic Role-Based
Authentication ........................................................ 10-2 Security ............................................................10-20
Authorization.......................................................... 10-2 Command Objects...................................................14-8
AutoScroll .............................................................. 1-27 CommandBuilder .......................................... 18-4, 18-6
CommandBuilder Disadvantages ............................18-6
CommandBuilder objects ........................................18-2
B Commands
Base class ................................................................. 6-3 Creating..............................................................18-7
BeginPrint event ....................................................... 5-6 Generating..........................................................18-2
BeginUpdate......................................................... 19-21 Common Language Runtime
Binary Data .......................................................... 19-23 About the .............................................................2-2
binary standard ......................................................... 2-3 Common Language Specification .............................2-3
BinaryFormatter object........................................... 11-4 common type system.................................................2-3
Bindable attribute ...................................... 13-33, 13-35 ComponentModel.BrowsableAttribute..................13-12
Binding a DataGrid ................................................ 14-7 ComponentModel.CancelEventArgs.......................13-9
Binding a ListBox to a Array ............................... 19-17 Composite Controls...............................................13-28
Binding to a DataView ......................................... 19-14 Configuration.Install.Installer ...................................7-4
Binding to Relations ............................................... 19-4 Configuring Policy ....................................................2-7
BindingContext ...................................................... 19-2 Constraints ..............................................................16-2
blind update ............................................................ 18-7 Other ................................................................16-18

Developing Applications in Visual C# .NET 2003 Index-1


Copyright © 2004 by Application Developers Training Company and AppDev Products, LLC
All rights reserved. Reproduction is strictly prohibited.
Index

Context Menu Code.................................................. 1-8 DataRowCollection .................................................14-4


ContextMenu............................................................ 1-4 DataRows ................................................................14-4
Control class......................................................... 13-15 DataRowsCollection.Find method ..........................15-6
Control Creation in Windows Forms...................... 13-2 DataRowVersion ...................................................18-10
Controlling Tab Order ............................................ 1-32 DataRowView object ............................................15-24
ControlPaint class...................................... 13-18, 13-20 DataSet and XML
ControlPaint.DrawCheckBox ............................... 13-18 loading from a string ........................................20-30
Controls DataSet Capabilities ................................................14-2
Adding Dynamically ......................................... 1-23 DataSet object .........................................................14-2
Enabling .......................................................... 10-12 DataSet XML output options
Create XML Programmatically .............................. 3-29 controlling........................................................20-11
createConstraints .................................................. 17-14 DataSetName property ..........................................20-12
Creating a Directory ............................................... 12-6 DataSets
Creating a File ........................................................ 12-6 filling .................................................................14-8
Creating and Modifying XML................................ 3-29 Merge method ....................................................16-8
Creating Commands ............................................... 18-7 DataSets and DataReaders.....................................14-13
Creating Random Keys........................................... 8-31 DataSets and XML ................................................14-24
cryptographic hashing ............................................ 2-21 DataSource .................................................. 19-4, 19-17
Cryptography............................................................ 8-2 DataSource property................................................14-7
CurrencyManager object ...................................... 15-27 DataTable ................................................................14-4
CurrentRowIndex ................................................... 19-5 finding a single value .........................................15-6
Custom controls searching ............................................................15-6
and default values............................................ 13-21 searching for multiple values .............................15-7
and serializing properties ................................ 13-21 simple dynamic searches....................................15-8
default event.................................................... 13-27 DataTable Columns.................................................14-6
default property ............................................... 13-26 DataTable object ......................................... 14-4, 14-18
Hiding a Property ............................................ 13-12 DataTable.Filter method
inheriting from existing control......................... 13-3 and row state ....................................................15-14
raising events................................................... 13-24 sorting ..............................................................15-13
toolbox icon..................................................... 13-11 DataTable.Select method.........................................15-8
walk-through ..................................................... 13-5 DataTableMapping Collection ..............................14-16
why create? ....................................................... 13-3 DataView
Custom controls for Windows Forms Binding to a......................................................19-14
ways to create.................................................... 13-2 defined .............................................................15-16
Custom Event ......................................................... 6-13 filtering ............................................................15-18
Custom Serialization ............................................ 11-38 filtering based on row status ............................15-19
finding a row....................................................15-24
finding multiple rows .......................................15-27
D iterating through rows ......................................15-23
Data compartment .................................................. 12-2 multiple views of same DataTable ...................15-21
DataAdapter ................................................ 14-8, 14-11 sorting ..............................................................15-17
updating with.......................................... 18-9, 18-17 DataView object....................................................15-16
DataAdapter Command Objects ............................. 14-8 DataView.RowStateFilter property .......................15-19
DataAdapter object................................................. 14-8 DataViewRowState enumeration ..........................15-14
Database relationships ............................................ 17-2 db_ prefix ..............................................................18-13
DataBinding ........................................................... 17-9 Dealing with Errors .................................................3-41
DataColumn Properties ........................................ 14-18 Declarative Permissions Using Attributes .................9-4
DataColumnCollection ........................................... 14-4 Declarative Role-Based Security...........................10-18
DataColumns.......................................................... 14-4 Decrypting a Message with the Private Key............8-17
DataColumns and Schema.................................... 14-18 decryptionKey attribute...........................................8-32
DataGrid Deep Clone............................................................11-32
binding .............................................................. 14-7 Default Printer.........................................................5-24
Configuring in code......................................... 19-11 Default Security Policy .............................................2-6
Limit editing.................................................... 19-13 Default Values.......................................................16-22
Retrieving values from ...................................... 19-5 DefaultEvent attribute ...........................................13-27
DataGridTableStyle................................................ 19-7 DefaultPageSettings property..................................5-18
DataMember........................................................... 19-4 DefaultProperty attribute.......................................13-27
DataReaders ......................................................... 14-13 DefaultValue attribute ...........................................13-22
DataRelation........................................................... 14-2 DefaultValueAttribute class ..................................13-22
DataRelation Object ............................................... 17-7 Defining DataTable Columns..................................14-6
DataRelations .............................................. 16-17, 17-2 Delayed Signing ......................................................2-26
DataRow.GetChildRows ...................................... 17-13 DeleteCommand............................................ 14-8, 18-7

Index-2 Developing Applications in Visual C# .NET 2003


Copyright © 2004 by Application Developers Training Company and AppDev Products, LLC
All rights reserved. Reproduction is strictly prohibited.
Index

Deleting a File or Directory.................................. 12-10 Reading from .....................................................12-9


Delimiters Writing to...........................................................12-8
and Dates......................................................... 15-12 FileInfo..................................................................19-17
managing......................................................... 15-10 FileSystemWatcher class............................... 7-15, 7-16
demands events ....................................................... 7-17, 7-18
security................................................................ 2-4 Fill method .................................................. 14-8, 14-12
Derived class ..................................................... 6-3, 6-7 Filling a DataTable..................................................14-9
Deriving.................................................................. 6-11 Filling DataSets.......................................................14-8
DES .......................................................................... 8-3 Font Metrics ............................................................4-18
Description attribute ............................................. 13-13 Font.GetHeight method...........................................5-12
Deserialization FontDialog ..............................................................1-31
defined............................................................... 11-2 Foreign key constraints ............................... 16-12, 17-6
DesignerSerializationVisibility attribute ... 13-33, 13-34 Formatter Objects....................................................11-4
DesktopLocation .................................................... 1-10 Formatting a DataGrid Control ...............................19-7
Determine if XML Isn’t Well Formed.................... 3-41 Forms
Determining Effective Permissions ........................ 9-22 drawing on ...........................................................4-2
DEVMODE ............................................................ 5-23 FormsIdentity ..........................................................10-5
DEVNAMES.......................................................... 5-23
Dialog Controls ...................................................... 1-30
Dialog Forms.......................................................... 1-15 G
DiffGram GDI ...........................................................................4-2
and ReadXml method...................................... 20-28 Generating a Key Pair ................................... 2-23, 8-13
including schema information ......................... 20-20 Generating Commands............................................18-2
XML output as ................................................ 20-18 Generating Random Values.....................................8-32
DiffGram format.......................................... 20-8, 20-18 GenericIdentity........................................................10-5
Digital signature ................................... 2-18, 2-22, 8-25 GenericIdentity Class ..............................................10-5
DirectoryInfo........................................................ 19-17 GenericPrincipal......................................................10-8
DisplayMember .................................................... 19-17 GetAnonymous .......................................................10-8
Disposing of Graphics Objects ............................... 4-15 GetChanges ...........................................................18-11
Docking ......................................................... 1-24, 1-27 GetChildRows .......................................................17-13
Document Object Model .......................................... 3-4 GetCurrent method..................................................10-7
DomainIsolationByRoamingUser......................... 12-24 GetElementsByTagName........................................3-18
DomainIsolationByUser ....................................... 12-24 GetElementsByTagName method ................. 3-14, 3-20
DomainUpDown Control ....................................... 1-11 GetFiles .................................................................19-17
Drawing and Filling Shapes ................................... 4-13 GetHdevmode .........................................................5-23
Drawing on Forms.................................................... 4-2 GetHdevnames ........................................................5-23
Drawing Shapes and Text......................................... 4-7 GetNamedItem ........................................................3-36
DrawItem Event ..................................................... 4-18 GetNamedItem method ...........................................3-27
DrawMode................................................................ 4-3 GetObjectData method..........................................11-43
DSA.......................................................................... 8-4 GetParentRow .......................................................17-17
GetXml..................................................................14-24
E GetXml method............................................. 20-8, 20-9
Global Assembly Cache ..........................................2-18
Enabling Controls................................................. 10-12 Graphics ....................................................................4-7
Encapsulation ........................................................... 6-2 Graphics device interface (GDI) ...............................4-2
Encrypting a Message with the Public Key ............ 8-15 Graphics Objects
Encrypting with Public and Private Key Pairs........ 2-19 disposing of........................................................4-15
EndPrint event .......................................................... 5-9 Graphics.MeasureString method .............................5-12
EndUpdate............................................................ 19-21 Graphics.VisibleClipBounds property.....................5-46
EventLog.WriteEntry ............................................... 7-7 GridTableStylesCollection ......................................19-7
Evidence ................................................. 2-4, 2-32, 9-22
execution plan ...................................................... 18-13
Expressions H
Aggregate........................................................ 17-19 Handle XML Loading Errors ..................................3-42
Lookup ............................................................ 17-22 Handling Multiple Roles .......................................10-17
Expressions and Relations .................................... 17-19 HasChildNodes property .........................................3-10
Extensible Stylesheet Language Transformations 20-37 Hash
Verifying............................................................8-22
F Hash Codes .............................................................8-20
HasMorePages property ........................... 5-8, 5-9, 5-43
File Hatch Styles ............................................................4-10
Creating............................................................. 12-6 HMACSHA1...........................................................8-20

Developing Applications in Visual C# .NET 2003 Index-3


Copyright © 2004 by Application Developers Training Company and AppDev Products, LLC
All rights reserved. Reproduction is strictly prohibited.
Index

LinePosition property..............................................3-42
I LinkData..................................................................1-20
ICloneable interface.............................................. 11-29 LinkLabel ................................................................1-20
ICloneable.Clone.................................................. 11-29 LinkLabel Control ...................................................1-19
Icon Links .......................................................................1-20
transparent background ................................... 13-12 ListBox Control........................................... 1-21, 19-17
Identity ................................................................... 10-2 Listing Printers ........................................................5-23
IFormatter interface ................................................ 11-4 Load XML Data ........................................................3-8
IIdentity Interface ................................................... 10-5 Loading an Image in a PictureBox Control ...........19-24
ildasm.exe............................................................... 2-16 Loading Images from Files....................................19-27
IList interface ....................................................... 19-17 Location ..................................................................1-10
Image property ..................................................... 19-28 Locking Controls.....................................................1-12
Image to Database ................................................ 19-28 Lookup Expressions ..............................................17-22
Images from Files................................................. 19-27
Imperative Permissions .......................................... 9-18
Imperative Role-Based Security ........................... 10-14
M
Inheritance....................................................... 6-3, 6-11 machineKey Element ..............................................8-31
Inheriting from an Existing Control ....................... 13-3 MACTripleDES ......................................................8-20
Inheriting from the Control Base Class ................ 13-15 Managed Code ..........................................................2-2
initialization vector................................................... 8-2 Manifest ..................................................................2-14
InnerText property.................................................. 3-38 MappingName.........................................................19-8
InnerXml property .................................................... 3-8 Master-Detail Forms ...............................................19-4
InsertCommand ............................................. 14-8, 18-7 MaxLength ............................................................16-21
InsertTextElement procedure ........................ 3-33, 3-35 MD5 ........................................................................8-21
InstalledPrinters property ....................................... 5-23 MD5CryptoServiceProvider....................................8-20
InstallUtil program ................................................. 7-11 MeasureItem Event .................................................4-17
Interfaces ................................................................ 6-19 Membership Condition..............................................9-9
Interfaces and Polymorphism ................................. 6-20 MemberwiseClone method........................ 11-28, 11-29
Internet Controls library ....................................... 14-29 MemoryStream......................................................19-24
IPrincipal Interface ................................................. 10-8 Merging DataSets....................................................16-8
IsDefaultPrinter property............................... 5-25, 5-27 Metadata...................................................... 2-14, 14-18
ISerializable constructor ....................................... 11-43 Microsoft Internet Controls library .......................14-29
ISerializable interface........................................... 11-43 Minimum permissions...............................................9-4
IsInRole ......................................................... 10-8, 10-9 Requesting ...........................................................9-4
Isolated Storage ...................................................... 12-2 MissingSchemaAction ..........................................14-21
Administering.................................................. 12-21 MissingSchemaAction.AddWithKey .......... 15-5, 17-14
Allowed Usage and Security Risks ................. 12-23 Modify the Value of an Attribute ............................3-39
Mechanics of ..................................................... 12-5 Modify the Value of an Element .............................3-38
Permissions ..................................................... 12-22 More About XPath ..................................................3-22
Roaming.......................................................... 12-19 MSIL .......................................................................2-15
Uses for ............................................................. 12-3 MSIL Disassembler.................................................2-16
Isolated Storage Pitfalls.......................................... 12-3 MSXML ....................................................................3-4
IsolatedStorageFile ................................................. 12-5 Multiple Queries....................................................14-14
IsolatedStorageFilePermission ............................... 12-4 Multiple Result Sets ..............................................14-13
Isolation
Types............................................................... 12-17
Isolation by User, Assembly, and AppDomain..... 12-18 N
Item property .......................................................... 19-5
Named DataSet......................................................14-15
Iterate through All Nodes ....................................... 3-12
Namespace ..............................................................2-16
Navigate to Related Nodes ......................................3-24
K Navigation.............................................................17-13
Nested property .....................................................20-12
Key Pair.................................................................. 8-13 NewRow Method ....................................................14-6
Keys.......................................................................... 8-4 nodes .........................................................................3-3
NodeType................................................................3-18
NonSerializable attribute.......................................11-18
L NotInheritable keyword...........................................13-3
Label Control.......................................................... 1-12 NT Services...............................................................7-2
LIKE operator ........................................................ 15-9 null values .............................................................16-14
Limit Editing in a DataGrid.................................. 19-13 Nulls......................................................................16-18
LineNumber property ............................................. 3-42 NumericUpDown Control .......................................1-10

Index-4 Developing Applications in Visual C# .NET 2003


Copyright © 2004 by Application Developers Training Company and AppDev Products, LLC
All rights reserved. Reproduction is strictly prohibited.
Index

PreserveWhiteSpace property ...................................3-9


O PreviewPrintController class...................................5-10
Object graph ......................................................... 11-20 Primary Key .................................................. 16-2, 16-6
serializing/deserializing................................... 11-26 Principal ..................................................................10-4
Object-Oriented Programming ................................. 6-2 PrincipalPermission attribute ................................10-19
OLE fields ............................................................ 19-25 PrincipalPermission objects
OnPaint procedure ................................................ 13-16 Combining .......................................................10-17
OnStart procedure............................................ 7-7, 7-20 PrincipalPolicy enumeration .................................10-15
OnStop procedure..................................................... 7-7 Print method..............................................................5-6
Opacity property..................................................... 4-16 PrintController Class ...............................................5-10
OpenFileDialog ........................................... 1-30, 19-28 PrintDialog Class ....................................................5-36
Optional Permissions.............................................. 9-10 PrintDialog control.......................................... 5-3, 5-33
OptionalPermissions code group ............................ 9-13 PrintDialog.AllowSelection ....................................5-22
Other Constraints.................................................. 16-18 PrintDialog.AllowSomePages .................................5-22
OuterXml property ................................................... 3-8 PrintDocument Class.................................................5-5
Overridable............................................................... 6-5 PrintDocument.DefaultPageSettings property.........5-16
Overridable Methods ................................................ 6-6 PrintDocument.PrinterSettings property .................5-21
Overriding ................................................................ 6-3 Printer Resolutions ..................................................5-30
Overriding a Method ................................................ 6-7 PrinterResolution object ..........................................5-30
OwnerDraw Controls................................................ 4-2 PrinterSettings class ................................................5-21
OwnerDraw Menus ................................................ 4-17 properties ...........................................................5-21
simple properties................................................5-26
working with printers .........................................5-23
P PrinterSettings object ..............................................5-24
Page dimensions ..................................................... 5-42 PrintPage event..........................................................5-7
determining ....................................................... 5-42 PrintPageEventArgs ................................................5-16
PageBounds property.............................................. 5-43 PrintPageEventArgs class........................................5-43
PageSettings class................................................... 5-16 PrintPageEventArgs.Graphics property...................5-43
properties........................................................... 5-16 PrintPageEventArgs.HasMorePages property .........5-43
PageSettings property............................................. 5-43 PrintPageEventArgs.PageBounds property .............5-43
PageSettings.Margins property............................... 5-43 PrintPageEventArgs.PageSettings property ............5-43
PageSettings.PrinterSettings property .................... 5-21 PrintPreviewControl control................... 5-4, 5-33, 5-39
PageSetupDialog control ...............5-3, 5-17, 5-33, 5-35 PrintPreviewDialog control.................... 5-5, 5-33, 5-38
Paint event ............................................................ 13-16 PrintRange property ................................................5-22
PaintEventArgs..................................................... 13-19 Print-Related Controls.............................................5-33
Paper Sizes ............................................................. 5-28 Private Key..............................................................2-21
Paper Sources ......................................................... 5-29 Private to Protected ...................................................6-5
PaperSize object ..................................................... 5-29 private-key cryptography ..........................................8-2
PaperSource object ................................................. 5-29 Protected Scope.........................................................6-4
Parameter.Add method ......................................... 18-17 Public and Private Keys ............................................8-4
Parameters .............................................................. 18-7 Public Key...............................................................2-20
Parameters Collection............................................. 18-8 Public Key Tokens ..................................................2-21
Parsed ................................................................... 18-13 public key cryptography............................................8-2
PassportIdentity ...................................................... 10-5
Pen............................................................................ 4-7 Q
Permission Sets.............................................. 2-12, 9-28
Requesting......................................................... 9-15 Queries
Permissions............................................................. 2-12 building ..............................................................14-9
Across Levels.................................................... 9-30 Queries in Visual Studio .NET................................14-9
minimum ............................................................. 9-4 Query DataSet Data with XPath............................20-41
Optional vs. Minimum ...................................... 9-11 QueryPageSettings event...........................................5-7
Refusing ............................................................ 9-14 QueryPageSettingsEventArgs object............. 5-16, 5-18
Permissions Across Levels ..................................... 9-30
Permissions and permission sets............................... 2-4
PictureBox Control............................................... 19-24
R
Policy RadioButton Control ...............................................1-16
Configuring ......................................................... 2-7 Random Keys..........................................................8-31
Security ............................................................... 2-4 Random Values
Policy Levels ............................................................ 2-6 Generating..........................................................8-32
Polymorphism ........................................................ 6-18 RC2 ...........................................................................8-3
Populating a DataTable .......................................... 14-6 Reading and Writing XML Data ...........................14-24
Positioning a Form ................................................. 1-11 Reading From a File................................................12-9

Developing Applications in Visual C# .NET 2003 Index-5


Copyright © 2004 by Application Developers Training Company and AppDev Products, LLC
All rights reserved. Reproduction is strictly prohibited.
Index

Reading XML Data .................................................. 3-8 SecurityNetMinimal ................................................9-15


Read-only Columns .............................................. 19-13 SelectCommand ......................................................14-8
ReadXml .............................................................. 14-26 Selecting a Printer ...................................................5-25
and XML string............................................... 20-30 SelectNodes method............................. 3-20, 3-21, 3-23
ReadXml method.............................. 20-6, 20-24, 20-32 SelectSingleNode method ............................. 3-20, 3-23
compared to Merge ......................................... 20-25 SerializableAttribute attribute ...............................11-17
ReadXmlSchema method ..................................... 20-27 Serialization
Rectangle.................................................................. 4-7 and the .NET Framework...................................11-2
Recursive techniques .............................................. 3-12 defined ...............................................................11-2
Referential Integrity.............................................. 16-13 extra information..............................................11-18
RefusePermissions.................................................. 9-14 generalizing......................................................11-11
Region ...................................................................... 4-7 using...................................................................11-2
Relations vs. persistence ....................................................11-3
Binding.............................................................. 19-4 SerializationInfo class ...........................................11-43
Relations and Constraints ..................................... 17-11 Serializing ArrayList ...............................................11-9
Relations and Expressions .................................... 17-19 Serializing Complex Objects.................................11-20
Relations in ADO.NET .......................................... 17-3 Serializing Framework objects ................................11-5
Relations property .................................................. 17-7 Serializing Multiple Objects..................................11-35
Relationships and DataBinding .............................. 17-9 Serializing user-defined objects ............................11-15
Relationships in Databases ..................................... 17-2 SerializableAttribute ........................................11-17
Remove All Nodes and Attributes.......................... 3-35 Server Explorer .......................................................14-9
RemoveAll method................................................. 3-35 ServiceBase
RemoveChild method............................................. 3-33 overrides ..............................................................7-6
RemoveNamedItem................................................ 3-36 ServiceController class..............................................7-2
Requesting Minimum Permissions ........................... 9-4 ServiceProcess.ServiceBase ......................................7-4
Requesting Permission Sets.................................... 9-15 Services applet ..........................................................7-2
RequestMinimum ..................................................... 9-5 SetAttribute method ................................................3-39
RequestRefuse ........................................................ 9-14 SetHdevmode ..........................................................5-23
Resources ............................................................... 2-15 SetHdevnames.........................................................5-23
Retrieve a Reference to a Particular Node.............. 3-23 SetNamedItem.........................................................3-36
Retrieve Attributes of a Node................................. 3-25 SetStyle method ....................................................13-21
Retrieve Element Nodes ......................................... 3-14 Setting Permissions for Isolated Storage ...............12-22
Retrieve Just Text Nodes........................................ 3-18 Settings
Retrieve Nodes Matching a Criterion ..................... 3-20 Storing.................................................. 12-11, 12-12
Retrieving Values from a DataGrid ........................ 19-5 SHA1Managed........................................................8-20
Rijndael .................................................................... 8-3 SHA256Managed....................................................8-21
RNGCryptoServiceProvider................................... 8-33 SHA384Managed....................................................8-21
RNGCryptoServiceProvider Class ......................... 8-33 SHA512Managed....................................................8-21
Roaming and Isolated Storage .............................. 12-19 Shadowing...............................................................6-10
Rows.Find ............................................................ 17-18 Shallow Clone .......................................................11-29
RowState ........................................ 18-10, 18-11, 18-22 Shaped Forms..........................................................4-21
RSA ................................................................. 8-4, 8-13 Shapes .....................................................................4-13
RSA digital signing algorithm................................ 2-18 ShouldSerialize and Reset Methods ......................13-24
RSACryptoServiceProvider class........................... 8-13 ShowDialog.............................................................1-15
signature formatter ..................................................8-26
sn.exe ......................................................................2-23
S SoapFormatter object ..............................................11-4
Save method ........................................................... 3-32 Sorted property......................................................19-21
Saving an Image to a Database............................. 19-28 SourceVersion .........................................................18-8
Saving DataSet Data as XML................................. 20-8 sp_ prefix...............................................................18-13
SAX.......................................................................... 3-4 sp_helptext ............................................................18-13
SAX API .................................................................. 3-4 Specifying Parameters.............................................18-7
Schema ................................................................. 14-18 Specifying XML Nesting ......................................17-24
SchemaType enumeration .................................... 14-23 Splitter Control........................................................1-28
Searching with Wildcards....................................... 15-9 SQL Server
Security Calls ........................................................... 9-3 Relationships......................................................17-2
Security Classes in .NET ........................................ 10-5 SQL WHERE clause ...............................................15-8
security demands ...................................................... 2-4 Stack Walk ...................................................... 2-5, 9-34
security policy .......................................................... 2-6 StandardPrintController class..................................5-10
Security Policy Default............................................. 2-6 StandardPrintControllerWithDialog class ...............5-10
security requests ....................................................... 2-4 Store
SecurityAction enumeration ..................................... 9-5 Obtaining ...........................................................12-5

Index-6 Developing Applications in Visual C# .NET 2003


Copyright © 2004 by Application Developers Training Company and AppDev Products, LLC
All rights reserved. Reproduction is strictly prohibited.
Index

Stored Procedures...................................... 18-13, 18-14 Verifying a Hash .....................................................8-22


assigning commands to ................................... 18-17 Verifying a Signature ..............................................8-27
stores ...................................................................... 12-2 ViewState ................................................................8-31
Storing Settings ......................................... 12-11, 12-12 visual inheritance ....................................................6-17
StreamingContext structure .................................. 11-47
StringFormat object ................................................ 5-12
StringReader class ................................................ 20-30 W
strong name ............................................................ 2-16 Web Farms ..............................................................8-31
Strong Name Tool .................................................. 2-23 WebBrowser control ...............................................20-7
Submitting Multiple Queries ................................ 14-14 Windows and Generic Role-Based Security
Symmetric Algorithms ............................................. 8-3 Combining .......................................................10-20
symmetric cryptography ........................................... 8-2 Windows Form Designer generated code region,..19-10
Synchronizing Multiple DataGrid Controls............ 19-2 Windows services
System.ComponentModel namespace .................... 13-6 adding an installer ................................................7-9
System.Data.MappingType enumeration value .... 20-12 building ........................................................ 7-4, 7-6
System.Drawing namespace..................................... 5-2 building and installing........................................7-10
System.Drawing.Printing namespace ....................... 5-2 debugging ..........................................................7-23
System.Security.Principal Namespace ................... 10-5 events ...................................................................7-4
System.XML namespace..........................3-2, 3-4, 14-3 examples ..............................................................7-2
System.XML.XMLDocument class ......................... 3-2 installation............................................................7-4
introduced ............................................................7-2
T properties .............................................................7-7
testing.................................................................7-11
Tab Control .............................................................. 1-3 uninstalling.........................................................7-12
Alignment ........................................................... 1-4 WindowsBuiltInRole enumeration ..........................10-9
Appearance.......................................................... 1-4 WindowsIdentity .....................................................10-5
Multiline.............................................................. 1-5 WindowsIdentity Class ...........................................10-7
ToolTipText ........................................................ 1-6 WindowsPrincipal ...................................................10-8
Tab Order ............................................................... 1-32 WindowsPrincipal Class .........................................10-8
TableMappings..................................................... 14-16 WindowState property.............................................1-17
TableStyles ............................................................. 19-8 Work with a Node’s Children .................................3-10
TabPagesTab Control: .............................................. 1-6 Working with Binary Data ....................................19-23
Three-Value Logic in a CheckBox ......................... 1-13 Working with Nodes ...............................................3-20
TickStyle .................................................................. 1-8 Write Cipher Text to Disk .......................................8-17
Toggling Inserts, Updates, and Deletes ................ 19-14 WriteXml ..............................................................14-25
ToolboxBitmap attribute ...................................... 13-12 WriteXml method.................... 20-7, 20-8, 20-14, 20-32
ToXmlString method.............................................. 8-14 WriteXmlSchema method .......................................20-8
TrackBar................................................................... 1-7 Writing to a File ......................................................12-8
TrackBar Properties.................................................. 1-7
TransparencyKey.................................................... 4-16
Transparent Areas in Forms ................................... 4-16 X
Types of Isolation ................................................. 12-17 XML
control the layout of the exported ......................20-8
U controlling nesting ...........................................20-11
manipulating programmatically .........................20-6
Union.................................................................... 10-17 reading and writing ............................................20-6
Unique Constraints ........................................ 16-2, 16-4 reading into a DataSet ......................................20-24
Unmanaged Code ..................................................... 2-2 saving DataSet data as........................................20-8
UpdateCommand.................................. 14-8, 18-7, 18-9 setting the mapping type for DataColumns ......20-11
Updating Data Using a Command Builder ............. 18-4 setting the root element name ..........................20-11
Updating with the DataAdapter .............................. 18-9 Visual Studio .NET tools ...................................20-2
UserControl class ................................................. 13-28 XML DOM ...............................................................3-4
Using Constraints ................................................... 16-2 XML infoset..............................................................3-3
Using XPath ........................................................... 3-20 XML Nesting ........................................................17-24
UTF8Encoding object ............................................ 8-16 XML Output as a DiffGram ..................................20-18
XML schema
inferring ...........................................................20-26
V in Visual Studio .NET........................................20-4
validation attribute.................................................. 8-32 using external...................................................20-27
validationKey attribute ........................................... 8-32 using internal....................................................20-26
ValueMember....................................................... 19-17 XmlAttribute class ..................................................3-26
XmlAttributeCollection class ..................................3-26

Developing Applications in Visual C# .NET 2003 Index-7


Copyright © 2004 by Application Developers Training Company and AppDev Products, LLC
All rights reserved. Reproduction is strictly prohibited.
Index

XmlComment class ................................................ 3-29 XmlReader ................................................................3-2


XmlDataDocument XmlReadMode enumeration .................................20-24
and XML schema ............................................ 20-34 XmlReadMode.InferSchema .................................20-26
Load method ................................................... 20-35 XmlSerializer ........................................................20-22
using................................................................ 20-33 XmlTextWriter class ...............................................3-29
XMLDataDocument ............................................... 14-3 XmlWriteMode .....................................................20-16
XmlDataDocument class ...................................... 20-32 XmlWriter .................................................................3-2
XmlDocument class ............................. 3-4, 3-29, 20-37 XPath........................................................... 3-20, 20-41
XmlDocument.Load method .................................... 3-8 XSLT.....................................................................20-38
XmlDocument.LoadXml method ............................. 3-9 format data from DataSet .................................20-37
XmlElement.SetAttribute ....................................... 3-36 XslTransform object..............................................20-40
XmlException exception ........................................ 3-41
XmlNode class ....................................................... 3-10
XmlNodeType ........................................................ 3-13 Z
XmlNodeType enumerated values ......................... 3-13 Zone Security ..........................................................2-30
XmlNodeType.Text................................................ 3-18
XmlProcessingInstruction class.............................. 3-29

Index-8 Developing Applications in Visual C# .NET 2003


Copyright © 2004 by Application Developers Training Company and AppDev Products, LLC
All rights reserved. Reproduction is strictly prohibited.

S-ar putea să vă placă și