Tableof
•
Contents
• Index
• Reviews
• CD-ROM
Reader
•
Reviews
• Errata
VB.NETCoreClassesinaNutshell
ByBudiKurniawan,TedNeward
Publisher :O'Reilly
PubDate :June2002
ISBN :0-596-00257-2
Pages :574
Slots :1
VB.NETCoreClassesinaNutshell,providesaconcise
andthoroughreferencetothetypesfoundinthecore
namespacesofthe.NETFrameworkClassLibrary.A
companiontoVB.NETLanguageinaNutshell,thisisa
referencethatVB.NETprogrammerswillturnto
repeatedly.DuetoaspecialpartnershipbetweenO'Reilly
andMicrosoft,thisbookalsoincludesaCDthatintegrates
thebook'sreferenceintoVisualStudio.NET.
Tableof
•
Contents
• Index
• Reviews
• CD-ROM
Reader
•
Reviews
• Errata
Copyright
Preface
VB.NETCoreClassesinaNutshell
ByBudiKurniawan,TedNeward
Publisher :O'Reilly
PubDate :June2002
ISBN :0-596-00257-2
Pages :574
Slots :1
WhoThisBookIsFor
HowThisBookIsStructured
What'sontheCD
ConventionsUsedinThisBook
HowtoContactUs
HowtheReferenceWasGenerated
Acknowledgments
PartI:Introduction
Chapter1.Introduction
Section1.1.Beforethe.NETFCL
Section1.2.The.NETFrameworkClassLibrary
Section1.3.Workingwiththe.NETFCL
Section1.4.TheTypesofa.NETNamespace
Section1.5.Approachingthe.NETFCL
PartII:.NETCoreClassesQuickReference
Chapter2.Reference
Section2.1.FindingaQuick-ReferenceEntry
Section2.2.ReadingaQuick-ReferenceEntry
Chapter3.Microsoft.Win32
PowerModeChangedEventArgs
PowerModeChangedEventHandler
PowerModes
Registry
RegistryHive
RegistryKey
SessionEndedEventArgs
SessionEndedEventHandler
SessionEndingEventArgs
SessionEndingEventHandler
SessionEndReasons
SystemEvents
TimerElapsedEventArgs
TimerElapsedEventHandler
UserPreferenceCategory
UserPreferenceChangedEventArgs
UserPreferenceChangedEventHandler
UserPreferenceChangingEventArgs
UserPreferenceChangingEventHandler
Chapter4.System
Activator
AppDomain
AppDomainSetup
AppDomainUnloadedException
ApplicationException
ArgIterator
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
ArithmeticException
Array
ArrayTypeMismatchException
AssemblyLoadEventArgs
AssemblyLoadEventHandler
AsyncCallback
Attribute
AttributeTargets
AttributeUsageAttribute
BadImageFormatException
BitConverter
Boolean
Buffer
Byte
CannotUnloadAppDomainException
Char
CharEnumerator
CLSCompliantAttribute
Console
ContextBoundObject
ContextMarshalException
ContextStaticAttribute
Convert
CrossAppDomainDelegate
DateTime
DayOfWeek
DBNull
Decimal
Delegate
DivideByZeroException
DllNotFoundException
Double
DuplicateWaitObjectException
EntryPointNotFoundException
Enum
Environment
Environment.SpecialFolder
EventArgs
EventHandler
Exception
ExecutionEngineException
FieldAccessException
FlagsAttribute
FormatException
GC
Guid
IAsyncResult
ICloneable
IComparable
IConvertible
ICustomFormatter
IDisposable
IFormatProvider
IFormattable
IndexOutOfRangeException
Int16
Int32
Int64
IntPtr
InvalidCastException
InvalidOperationException
InvalidProgramException
IServiceProvider
LoaderOptimization
LoaderOptimizationAttribute
LocalDataStoreSlot
MarshalByRefObject
Math
MemberAccessException
MethodAccessException
MissingFieldException
MissingMemberException
MissingMethodException
MTAThreadAttribute
MulticastDelegate
MulticastNotSupportedException
NonSerializedAttribute
NotFiniteNumberException
NotImplementedException
NotSupportedException
NullReferenceException
Object
ObjectDisposedException
ObsoleteAttribute
OperatingSystem
OutOfMemoryException
OverflowException
ParamArrayAttribute
PlatformID
PlatformNotSupportedException
Random
RankException
ResolveEventArgs
ResolveEventHandler
RuntimeTypeHandle
SByte
SerializableAttribute
Single
StackOverflowException
STAThreadAttribute
String
SystemException
ThreadStaticAttribute
TimeSpan
TimeZone
Type
TypeCode
TypeInitializationException
TypeLoadException
TypeUnloadedException
UInt16
UInt32
UInt64
UIntPtr
UnauthorizedAccessException
UnhandledExceptionEventArgs
UnhandledExceptionEventHandler
Uri
UriBuilder
UriFormatException
UriHostNameType
UriPartial
ValueType
Version
Void
WeakReference
Chapter5.System.Collections
ArrayList
BitArray
CaseInsensitiveComparer
CaseInsensitiveHashCodeProvider
CollectionBase
Comparer
DictionaryBase
DictionaryEntry
Hashtable
ICollection
IComparer
IDictionary
IDictionaryEnumerator
IEnumerable
IEnumerator
IHashCodeProvider
IList
Queue
ReadOnlyCollectionBase
SortedList
Stack
Chapter6.System.Collections.Specialized
BitVector32
BitVector32.Section
CollectionsUtil
HybridDictionary
ListDictionary
NameObjectCollectionBase
NameObjectCollectionBase.KeysCollection
NameValueCollection
StringCollection
StringDictionary
StringEnumerator
Chapter7.System.Diagnostics
BooleanSwitch
ConditionalAttribute
CounterCreationData
CounterCreationDataCollection
CounterSample
CounterSampleCalculator
Debug
DebuggableAttribute
Debugger
DebuggerHiddenAttribute
DebuggerStepThroughAttribute
DefaultTraceListener
EntryWrittenEventArgs
EntryWrittenEventHandler
EventLog
EventLogEntry
EventLogEntryCollection
EventLogEntryType
EventLogInstaller
EventLogPermission
EventLogPermissionAccess
EventLogPermissionAttribute
EventLogPermissionEntry
EventLogPermissionEntryCollection
EventLogTraceListener
FileVersionInfo
InstanceData
InstanceDataCollection
InstanceDataCollectionCollection
MonitoringDescriptionAttribute
PerformanceCounter
PerformanceCounterCategory
PerformanceCounterInstaller
PerformanceCounterPermission
PerformanceCounterPermissionAccess
PerformanceCounterPermissionAttribute
PerformanceCounterPermissionEntry
PerformanceCounterPermissionEntryCollection
PerformanceCounterType
Process
ProcessModule
ProcessModuleCollection
ProcessPriorityClass
ProcessStartInfo
ProcessThread
ProcessThreadCollection
ProcessWindowStyle
StackFrame
StackTrace
Switch
TextWriterTraceListener
ThreadPriorityLevel
ThreadState
ThreadWaitReason
Trace
TraceLevel
TraceListener
TraceListenerCollection
TraceSwitch
Chapter8.System.Globalization
Calendar
CalendarWeekRule
CompareInfo
CompareOptions
CultureInfo
CultureTypes
DateTimeFormatInfo
DateTimeStyles
DaylightTime
GregorianCalendar
GregorianCalendarTypes
HebrewCalendar
HijriCalendar
JapaneseCalendar
JulianCalendar
KoreanCalendar
NumberFormatInfo
NumberStyles
RegionInfo
SortKey
StringInfo
TaiwanCalendar
TextElementEnumerator
TextInfo
ThaiBuddhistCalendar
UnicodeCategory
Chapter9.System.IO
BinaryReader
BinaryWriter
BufferedStream
Directory
DirectoryInfo
DirectoryNotFoundException
EndOfStreamException
ErrorEventArgs
ErrorEventHandler
File
FileAccess
FileAttributes
FileInfo
FileLoadException
FileMode
FileNotFoundException
FileShare
FileStream
FileSystemEventArgs
FileSystemEventHandler
FileSystemInfo
FileSystemWatcher
InternalBufferOverflowException
IODescriptionAttribute
IOException
MemoryStream
NotifyFilters
Path
PathTooLongException
RenamedEventArgs
RenamedEventHandler
SeekOrigin
Stream
StreamReader
StreamWriter
StringReader
StringWriter
TextReader
TextWriter
WaitForChangedResult
WatcherChangeTypes
Chapter10.System.IO.IsolatedStorage
INormalizeForIsolatedStorage
IsolatedStorage
IsolatedStorageException
IsolatedStorageFile
IsolatedStorageFileStream
IsolatedStorageScope
Chapter11.System.Net
AuthenticationManager
Authorization
Cookie
CookieCollection
CookieContainer
CookieException
CredentialCache
Dns
DnsPermission
DnsPermissionAttribute
EndPoint
EndpointPermission
FileWebRequest
FileWebResponse
GlobalProxySelection
HttpContinueDelegate
HttpStatusCode
HttpVersion
HttpWebRequest
HttpWebResponse
IAuthenticationModule
ICertificatePolicy
ICredentials
IPAddress
IPEndPoint
IPHostEntry
IWebProxy
IWebRequestCreate
NetworkAccess
NetworkCredential
ProtocolViolationException
ServicePoint
ServicePointManager
SocketAddress
SocketPermission
SocketPermissionAttribute
TransportType
WebClient
WebException
WebExceptionStatus
WebHeaderCollection
WebPermission
WebPermissionAttribute
WebProxy
WebRequest
WebResponse
Chapter12.System.Net.Sockets
AddressFamily
LingerOption
MulticastOption
NetworkStream
ProtocolFamily
ProtocolType
SelectMode
Socket
SocketException
SocketFlags
SocketOptionLevel
SocketOptionName
SocketShutdown
SocketType
TcpClient
TcpListener
UdpClient
Chapter13.System.Reflection
AmbiguousMatchException
Assembly
AssemblyAlgorithmIdAttribute
AssemblyCompanyAttribute
AssemblyConfigurationAttribute
AssemblyCopyrightAttribute
AssemblyCultureAttribute
AssemblyDefaultAliasAttribute
AssemblyDelaySignAttribute
AssemblyDescriptionAttribute
AssemblyFileVersionAttribute
AssemblyFlagsAttribute
AssemblyInformationalVersionAttribute
AssemblyKeyFileAttribute
AssemblyKeyNameAttribute
AssemblyName
AssemblyNameFlags
AssemblyNameProxy
AssemblyProductAttribute
AssemblyTitleAttribute
AssemblyTrademarkAttribute
AssemblyVersionAttribute
Binder
BindingFlags
CallingConventions
ConstructorInfo
CustomAttributeFormatException
DefaultMemberAttribute
EventAttributes
EventInfo
FieldAttributes
FieldInfo
ICustomAttributeProvider
InterfaceMapping
InvalidFilterCriteriaException
IReflect
ManifestResourceInfo
MemberFilter
MemberInfo
MemberTypes
MethodAttributes
MethodBase
MethodImplAttributes
MethodInfo
Missing
Module
ModuleResolveEventHandler
ParameterAttributes
ParameterInfo
ParameterModifier
Pointer
PropertyAttributes
PropertyInfo
ReflectionTypeLoadException
ResourceAttributes
ResourceLocation
StrongNameKeyPair
TargetException
TargetInvocationException
TargetParameterCountException
TypeAttributes
TypeDelegator
TypeFilter
Chapter14.System.Reflection.Emit
AssemblyBuilder
AssemblyBuilderAccess
ConstructorBuilder
CustomAttributeBuilder
EnumBuilder
EventBuilder
EventToken
FieldBuilder
FieldToken
FlowControl
ILGenerator
Label
LocalBuilder
MethodBuilder
MethodRental
MethodToken
ModuleBuilder
OpCode
OpCodes
OpCodeType
OperandType
PackingSize
ParameterBuilder
ParameterToken
PEFileKinds
PropertyBuilder
PropertyToken
SignatureHelper
SignatureToken
StackBehaviour
StringToken
TypeBuilder
TypeToken
UnmanagedMarshal
Chapter15.System.Runtime.InteropServices
ArrayWithOffset
AssemblyRegistrationFlags
CallingConvention
CharSet
ClassInterfaceAttribute
ClassInterfaceType
CoClassAttribute
ComAliasNameAttribute
ComConversionLossAttribute
COMException
ComImportAttribute
ComInterfaceType
ComMemberType
ComRegisterFunctionAttribute
ComSourceInterfacesAttribute
ComUnregisterFunctionAttribute
ComVisibleAttribute
CurrencyWrapper
DispatchWrapper
DispIdAttribute
DllImportAttribute
ErrorWrapper
ExtensibleClassFactory
ExternalException
FieldOffsetAttribute
GCHandle
GCHandleType
GuidAttribute
HandleRef
IDispatchImplAttribute
IDispatchImplType
InAttribute
InterfaceTypeAttribute
InvalidComObjectException
InvalidOleVariantTypeException
IRegistrationServices
LayoutKind
LCIDConversionAttribute
Marshal
MarshalAsAttribute
MarshalDirectiveException
ObjectCreationDelegate
OptionalAttribute
OutAttribute
PreserveSigAttribute
ProgIdAttribute
RegistrationServices
RuntimeEnvironment
SafeArrayRankMismatchException
SafeArrayTypeMismatchException
SEHException
StructLayoutAttribute
UnknownWrapper
UnmanagedType
VarEnum
IExpando
Chapter16.System.Runtime.Serialization
Formatter
FormatterConverter
FormatterServices
IDeserializationCallback
IFormatter
IFormatterConverter
IObjectReference
ISerializable
ISerializationSurrogate
ISurrogateSelector
ObjectIDGenerator
ObjectManager
SerializationBinder
SerializationEntry
SerializationException
SerializationInfo
SerializationInfoEnumerator
StreamingContext
StreamingContextStates
SurrogateSelector
Chapter17.System.Runtime.Serialization.Formatters
BinaryFormatter
FormatterAssemblyStyle
FormatterTypeStyle
IFieldInfo
ISoapMessage
ServerFault
SoapFault
SoapFormatter
SoapMessage
Chapter18.System.Text
ASCIIEncoding
Decoder
Encoder
Encoding
StringBuilder
UnicodeEncoding
UTF7Encoding
UTF8Encoding
Chapter19.System.Text.RegularExpressions
Capture
CaptureCollection
Group
GroupCollection
Match
MatchCollection
MatchEvaluator
Regex
RegexCompilationInfo
RegexOptions
Chapter20.System.Threading
ApartmentState
AutoResetEvent
Interlocked
IOCompletionCallback
LockCookie
ManualResetEvent
Monitor
Mutex
NativeOverlapped
Overlapped
ReaderWriterLock
RegisteredWaitHandle
SynchronizationLockException
Thread
ThreadAbortException
ThreadExceptionEventArgs
ThreadExceptionEventHandler
ThreadInterruptedException
ThreadPool
ThreadPriority
ThreadStart
ThreadState
ThreadStateException
Timeout
Timer
TimerCallback
WaitCallback
WaitHandle
WaitOrTimerCallback
Chapter21.System.Timers
ElapsedEventArgs
ElapsedEventHandler
Timer
TimersDescriptionAttribute
Chapter22.System.Xml
EntityHandling
Formatting
IHasXmlNode
IXmlLineInfo
NameTable
ReadState
ValidationType
WhitespaceHandling
WriteState
XmlAttribute
XmlAttributeCollection
XmlCDataSection
XmlCharacterData
XmlComment
XmlConvert
XmlDataDocument
XmlDeclaration
XmlDocument
XmlDocumentFragment
XmlDocumentType
XmlElement
XmlEntity
XmlEntityReference
XmlException
XmlImplementation
XmlLinkedNode
XmlNamedNodeMap
XmlNamespaceManager
XmlNameTable
XmlNode
XmlNodeChangedAction
XmlNodeChangedEventArgs
XmlNodeChangedEventHandler
XmlNodeList
XmlNodeOrder
XmlNodeReader
XmlNodeType
XmlNotation
XmlParserContext
XmlProcessingInstruction
XmlQualifiedName
XmlReader
XmlResolver
XmlSignificantWhitespace
XmlSpace
XmlText
XmlTextReader
XmlTextWriter
XmlTokenizedType
XmlUrlResolver
XmlValidatingReader
XmlWhitespace
XmlWriter
Chapter23.System.Xml.XPath
IXPathNavigable
XmlCaseOrder
XmlDataType
XmlSortOrder
XPathDocument
XPathException
XPathExpression
XPathNamespaceScope
XPathNavigator
XPathNodeIterator
XPathNodeType
XPathResultType
Chapter24.System.Xml.Xsl
IXsltContextFunction
IXsltContextVariable
XsltArgumentList
XsltCompileException
XsltContext
XsltException
XslTransform
PartIII:Appendixes
AppendixA.RegularExpressions
AppendixB.FormatSpecifiers
SectionB.1.PictureFormatSpecifiers
SectionB.2.DateTimeFormatSpecifiers
AppendixC.DataMarshaling
AppendixD.NamespacesandAssemblies
Type,Method,Property,Event,andFieldIndex
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Colophon
Index
Copyright©2002O'Reilly&Associates,Inc.Allrightsreserved.
PrintedintheUnitedStatesofAmerica.
PublishedbyO'Reilly&Associates,Inc.,1005GravensteinHighway
North,Sebastopol,CA95472.
O'Reilly&Associatesbooksmaybepurchasedforeducational,
business,orsalespromotionaluse.Onlineeditionsarealsoavailablefor
mosttitles().Formoreinformationcontactour
corporate/institutionalsalesdepartment:800-998-9938or
NutshellHandbook,theNutshellHandbooklogo,andtheO'Reillylogo
areregisteredtrademarksofO'Reilly&Associates,Inc.Manyofthe
designationsusedbymanufacturersandsellerstodistinguishtheir
productsareclaimedastrademarks.Wherethosedesignationsappearin
thisbook,andO'Reilly&Associates,Inc.wasawareofatrademark
claim,thedesignationshavebeenprintedincapsorinitialcaps.The
associationbetweentheimageofacrawfishandthetopicofVB.NET
CoreClassesisatrademarkofO'Reilly&Associates,Inc.ActiveX,
IntelliSense,Microsoft,VisualBasic,VisualC++,VisualStudio,Win32,
Windows,andWindowsNTareregisteredtrademarks,andVisualC#is
atrademarkofMicrosoftCorporation.
Whileeveryprecautionhasbeentakeninthepreparationofthisbook,
thepublisherandtheauthorassumenoresponsibilityforerrorsor
omissions,orfordamagesresultingfromtheuseoftheinformation
containedherein.
Preface
ThisbookisadesktopreferenceforthecoreclassesinMicrosoft's.NET
FrameworkClassLibrary(FCL).Itisintendedasacompanionvolumeto
VisualBasic.NETLanguageinaNutshell,SecondEdition,which
providesareferencetotheVisualBasiclanguage.
VisualBasic.NETCoreClassesinaNutshellisdividedintotwoparts.
PartI,whichconsistsofasinglechapter,offersaverybriefoverviewof
andintroductiontothe.NETFCL.
PartIIisaquickreferencetothecoreclassesoftheFCL22ofthemost
importantnamespacesoftheFCLandtheirmorethan700types,
completewithnamespacemaps,typedescriptions,membersignatures
usingVB.NETsyntax,andusefulcrossreferencesandannotations.Part
IIisalsoavailableontheCD-ROMthataccompaniesthebook(see
fortheinformationavailableon
theCD-ROM).
WhoThisBookIsFor
Asareferenceguidetothecoreclasses,wethinkyou'llfindVisualBasic
.NETCoreClassesinaNutshelltobeanessentialbookregardlessof
yourlevelofexperiencewithVisualBasic.Whetheryouarean
experiencedVisualBasicdeveloperorarelativelynewprogrammerjust
beginningtoworkwithVisualBasicandthe.NETplatform,you'llfindthat
VisualBasic.NETCoreClassesinaNutshellprovidesanextremely
helpfuldescriptionofeachtypeinthenamespacesdocumentedinPartII,
alongwithausefullistoftypemembersthatfeaturesVBsyntax.
HowThisBookIsStructured
Thisbookconsistsoftwoparts:asingle-chapterintroduction,anda
referenceguideto22ofthecorenamespacesofthe.NETFramework
ClassLibrary.
ThesinglechapterinPartIexaminesthesignificanceofthe.NET
FrameworkClassLibrary,providesasummaryofitscontents,discusses
thetypesfoundin.NETnamespaces,andofferssomesuggestionsfor
exploringtheFCL.
PartIIconsistsof22chapters,eachofwhichisdevotedtooneofthe22
namespacesdocumentedinthisbook.Thesenamespacesprovidethe
core(orsystem-level)classesdefinedinthe.NETFCL.Excludedarethe
namespaceswhoseclassesaredesignedtoprovidesupportfor
applicationdevelopment.Themostnotableoftheseexcluded
namespacesandtheirchildnamespacesareSystem.Data,System.Web,
andSystem.Windows.Forms.
PartIIincludeschaptersthatdocumentthefollowing.NETFCL
namespaces:
Microsoft.Win32
System
System.Collections
System.Collections.Specialized
System.Diagnostics
System.Globalization
System.IO
System.IO.IsolatedStorage
System.Net
System.Net.Sockets
System.Reflection
System.Reflection.Emit
System.Runtime.InteropServices
System.Runtime.Serialization
System.Runtime.Serialization.Formatters
System.Text
System.Text.RegularExpressions
System.Threading
System.Timers
System.XML
System.XML.XPath
System.Xml.Xsl
Chapter2explainshowtogetthemostfromthisreference.