Visual CSharp 2005 Recipes (2006) [eng]
.pdf538 ■I N D E X
reading and writing a text file, 156–158 |
Form class |
retrieving information about files, directories, |
BackgroundImage property, 264 |
or drives, 143–147 |
ControlBox property, 244 |
retrieving version information for a file, 152–154 |
Controls property, 219 |
setting file and directory attributes, 147–149 |
DoubleBuffered property, 271 |
showing common file dialog boxes, 172–174 |
extending, 4 |
showing JIT directory tree in the TreeView |
FormBorderStyle property, 244 |
control, 154–156 |
Handle property, 443 |
testing two files for equality, 164–165 |
Language property, 242 |
using an isolated store, 174–176 |
Load event, 154 |
working with relative paths, 168–169 |
Localizable property, 241 |
FileSecurity class |
MaximizeBox property, 244 |
retrieving, 180 |
MdiChildren property, 223 |
FileStream class |
MdiParent property, 223 |
Handle property, 442 |
MinimizeBox property, 244 |
System.IO namespace, 58, 156, 158 |
MouseMove event, 260 |
FileSystemEventArgs class, 177 |
OnClosed method, 223 |
FileSystemWatcher class |
OnClosing method, 223 |
Created event, 177 |
OnLoad method, 223 |
Deleted event, 177 |
Paint event handler, 260, 272 |
EnableRaisingEvents property, 177 |
Region property, 263 |
events, 176 |
SetStyle method, 271 |
NotifyFilter property, 177 |
System.Windows.Forms namespace, 4, 387 |
properties, 177 |
Text property, 244 |
System.IO namespace, 176 |
TopMost property, 442 |
FileVersionInfo class |
TransparentKey property, 264 |
GetVersionInfo method, 152 |
Format method |
FileWebRequest class |
String class, 484 |
creating instance, 344 |
FormatException class |
FilgraphManager class, 279 |
System namespace, 47, 487 |
Fill method |
FormatMessage function, 448 |
TreeView control, 154 |
Kernel32.dll file, 449 |
Filter property |
formatProvider argument, 484 |
FileSystemWatcher class, 177 |
formattable type, implementing, 483–486 |
OpenFileDialog class, 172 |
FormBorderStyle property |
finalizer, 480 |
Form class, 244 |
finally block, 116 |
FormCollection class |
FinalReleaseComObject method |
accessing form objects, 220 |
Marshal class, 452 |
example, 220 |
Find method |
obtaining, 220 |
Certificates class, 350, 376 |
free space on drive, calculating, |
FlowDirection property |
170–172 |
FlowLayoutPanel container, 238 |
Freeman, Adam and Jones, Allen |
FlowLayoutPanel container |
Programming .NET Security, 394 |
FlowDirection property, 238 |
From property |
WrapContents property, 238 |
MailMessage class, 353 |
FolderBrowserDialog class |
FromBase64CharArray method |
SelectedPath property, 173 |
Convert class, 38 |
System.Windows.Forms namespace, |
FromBase64String method |
172 |
Convert class, 38 |
FontCollection class |
FromDays property |
Families property, 258 |
TimeSpan structure, 109 |
FontFamily class |
FromFile method |
representing all installed fonts, 258 |
Image class, 273 |
fonts, finding, 257–259 |
FTP, downloading data over, 341–343 |
FOR XML AUTO clause, 321 |
FtpWebRequest class |
FOR XML clause, 321–322 |
creating instance, 344 |
FOR XML EXPLICIT syntax, 322 |
FullName property |
ForegroundColor property |
DirectoryInfo class, 144 |
Console class, 29 |
FileInfo class, 144 |
542 ■I N D E X
IDataParameter interface |
IIS (Internet Information Services) |
creating, 328 |
hosting remote objects in, 387–388 |
data provider implementations, 315, 319 |
ILease interface |
System.Data namespace, 315, 318 |
InitialLeaseTime property, 389 |
IDataParameterCollection interface |
Renew method, 389 |
System.Data namespace, 312 |
RenewOnCallTime property, 389 |
IDataReader interface, 328 |
Image class |
ExecuteReader returns, 312 |
FromFile method, 273 |
extends IDataRecord interface, 319 |
GetBounds method, 260 |
extends System.IDisposable, 320 |
GetThumbnailImage method, 273 |
IDataRecord interface |
System.Drawing namespace, 273 |
IDataReader interface extends, 319 |
images, showing thumbnails for, 273–275 |
IDbCommand interface, 328 |
IMediaControl interface, 279 |
CommandText property, 311 |
loading and playing a movie, 279 |
CommandType property, 311 |
RenderFile method, 278 |
CreateParameter method, 316, 328 |
Impersonate method |
data provider implementations, 311 |
WindowsIdentity class, 418–419 |
ExecuteNonQuery method, 311–312 |
impersonation of Windows user, 418–421 |
ExecuteReader method, 311–312, 318, 328 |
Increment method |
ExecuteScalar method, 311–312 |
Interlocked class, 129 |
Parameters collection, 315–316, 328 |
inequality (!=) operator |
System.Data namespace, 311 |
supported by TimeSpan and DateTime |
IDbConnection interface, 328 |
structures, 49 |
ConnectionString property, 301, 307 |
inequality operator !=, 13 |
CreateCommand method, 312, 328 |
Infinite property |
data provider implementations, 301 |
Timeout class, 108–109 |
System.Data namespace, 301 |
information retrieval |
IDbDataAdapter interface, 328 |
files, directories, or drives, 143–147 |
IDbTransaction interface |
version information for a file, 152–154 |
System.Data namespace, 312 |
Information value |
IDisposable interface |
EventLogEntryType enumeration, |
Dispose method, 480, 510 |
504 |
extended by IDataReader interface, 320 |
InheritanceDemand value |
RegistryKey class implements, 510 |
implementing, 408 |
System namespace, 56, 302, 433, 480 |
SecurityAction enumeration, 407 |
IEnumerable interface, 476 |
usefulness, 408 |
GetEnumerator method, 471, 475–476 |
Inherited property |
System.Collections namespace, 471, 475 |
AttributeUsageAttribute class, 92 |
System.Collections.Generic namespace, 471 |
InitializeComponent method, 214 |
IEnumerator interface, 476 |
InitializeLifetimeService method |
Current property, 475 |
MarshalByRefObject class, 389 |
GetEnumerator method, 472 |
InitialLeaseTime property |
members, 475 |
ILease interface, 389 |
MoveNext method, 475 |
InnerException class, 357 |
Reset method, 475 |
InnerText property |
System.Collections namespace, 410, 471, 475 |
XmlNode class, 184 |
System.Collections.Generic namespace, 471 |
InnerXml property |
IFormatProvider interface, 47 |
XmlNode class, 184 |
System namespace, 484 |
Input value |
IFormattable interface |
ParameterDirection enumeration, 316 |
System namespace, 483 |
InputOutput value |
ToString method, 484 |
ParameterDirection enumeration, 316 |
IFormatter interface |
InsertAfter method |
Deserialize method, 58 |
XmlNode class, 187 |
Serialize method, 58 |
InsertAt method |
System.Runtime.Serialization namespace, |
SecureString class, 432 |
58 |
InsertBefore method |
IIdentity interface |
XmlNode class, 187 |
System.Security.Principal namespace, 411 |
InstalledFontCollection class |
WindowsIdentity class implements, 412 |
System.Drawing.Text namespace, 258 |
■I N D E X 543
InstalledPrinters collection |
IPrincipal class |
PrinterSettings class, 282 |
System.Security.Principal namespace, 346 |
Installer class |
IPrincipal interface, 415 |
Installers property, 516 |
representing user, 415 |
System.Configuration.Install namespace, |
System.Security.Principal namespace, 411, |
516 |
418 |
InstallerCollection class |
WindowsPrincipal class implements, 412 |
System.Configuration.Install namespace, |
IPStatus enumeration |
516 |
System.Net.NetworkInformation namespace, |
Installers property |
357 |
Installer class, 516 |
values, 357 |
Instance property |
irregularly shaped control |
SqlDataSourceEnumerator class, |
creating, 263–265 |
332 |
IsAlive property |
instantiation using reflection, 87–90 |
Thread class, 131 |
int type |
IsAvailable property |
Base64 encoding and decoding using |
NetworkAvailabilityEventArgs class, 339 |
Convert class, 38 |
IsBodyHtml property |
converting to and from byte array using |
MailMessage class, 353 |
BitConverter class, 36–38 |
IsBusy property |
Int32 value |
WebBrowser control, 254 |
DbType enumeration, 316 |
IsClosed property |
interfaces and patterns, 457 |
data reader classes, 319 |
implementing |
IsDBNull method |
a cloneable type, 463–467 |
data reader classes, 319 |
a comparable type, 467–471 |
IsDefined method |
a custom event argument, 490–492 |
Attribute class, 94 |
a custom exception class, 486–490 |
ICustomAttributeProvider interface, 93 |
a disposable class, 480–483 |
ISerializable class |
a formattable type, 483–486 |
System.Runtime.Serialization namespace, |
a serializable type, 457–463 |
491 |
an enumerable collection, 471–475 |
ISerializable interface |
an enumerable type using custom iterator, |
Exception class implements, 488 |
475–480 |
GetObjectData method, 459, 488 |
the Observer pattern, 493–497 |
implementing, 459–460 |
the Singleton pattern, 492–493 |
System.Runtime.Serialization namespace, |
Interlocked class |
458, 488 |
methods for synchronizing data access, |
IsFinalizingForUnload method |
129 |
AppDomain class, 83 |
System.Threading namespace, 128 |
IsGranted method |
using methods, 129 |
SecurityManager class, 406–407 |
Internet Information Services, 387–388 |
IsInRole method |
interoperability. See unmanaged code |
WindowsPrincipal class, 411–412 |
interoperability |
IsMatch method |
IntPtr class |
Regex class, 43–44 |
System namespace, 418, 433, 442 |
IsNullable property |
InvalidCastException class |
parameter objects, 316 |
System namespace, 86 |
isolated stores, 174–176 |
InvalidOperationException class |
IsolatedStorageFile class |
System namespace, 357, 411, 432, 475 |
Roaming flag, 175 |
Invoke method |
System.IO.IsolatedStorage namespace, 174 |
ConstructorInfo class, 87–88 |
IsolatedStorageFileStream class |
IOException class |
System.IO.IsolatedStorage namespace, 174 |
System.IO namespace, 170 |
IsolatedStoragePermission class, 175 |
IP address |
IsPathRooted method |
pinging, 357–359 |
Path class, 166 |
resolving host name to, 355–357 |
IsPublic property |
IPGlobalProperties class |
RegexCompilationInfo class, 46 |
System.Net.NetworkInformation namespace, |
IsReadOnly property |
337 |
FileInfo class, 144 |