You are previewing VB.NET Core Classes in a Nutshell.
O'Reilly logo
VB.NET Core Classes in a Nutshell

Book Description

The .NET platform gives Visual Basic developers access to an entirely new and comprehensive class library that promises to further simplify and speed VB application development. In VB.NET Core Classes in a Nutshell, VB Programmers will find a concise and thorough reference to the types found in the core namespaces of the .NET Framework Class Library. The heart of this book is a classic Nutshell Quick Reference to all the types found in 22 core .NET namespaces. The entry for each type describes its significance, explains how the type is used in .NET applications and lists its members and their signatures in readable VB.NET syntax. The core namespaces documented in this book include types in the following areas:

  • Essential system and programming services found in the System namespace

  • Text handling and regular expression pattern searches

  • Diagnostics, debugging, and performance monitoring

  • Generalized and specialized collection objects

  • Reflection

  • Extensible Markup Language (XML)

  • Input/output and serialization

  • Networking

  • Threading and timers

  • COM interop and globalization

  • An essential companion to VB.NET Language in a Nutshell, this book completes a two-volume reference that VB.NET programmers will turn to repeatedly in both its print and online versions. Thanks to a special partnership between O'Reilly and Microsoft, now you can integrate the content from this "In a Nutshell" title with the Dynamic Help inside Visual Studio .NET. Once you install the plug-in using the enclosed CD-ROM, you'll have full access to its 22 namespace overviews and 700-plus type entries. Requires Visual Studio .NET or Visual Basic .NET.

    Table of Contents

    1. VB.NET Core Classes in a Nutshell
      1. Preface
        1. Who This Book Is For
        2. How This Book Is Structured
        3. What’s on the CD
        4. Conventions Used in This Book
        5. How to Contact Us
        6. How the Reference Was Generated
        7. Acknowledgments
      2. I. Introduction
        1. 1. Introduction
          1. Before the .NET FCL
            1. The Win32 API
            2. COM Automation
          2. The .NET Framework Class Library
          3. Working with the .NET FCL
            1. Defining Accessible Namespaces
            2. Accessing Types in Namespaces
            3. Importing Namespaces
          4. The Types of a .NET Namespace
            1. Classes
            2. Structures
            3. Enumerations
            4. Interfaces
            5. Delegates
          5. Approaching the .NET FCL
            1. Array Class
            2. Boolean Structure
            3. Byte Structure
            4. Char Structure
            5. DateTime Structure
            6. Decimal Structure
            7. Double Structure
            8. Int16 Structure
            9. Int32 Structure
            10. Int64 Structure
            11. Object Class
            12. Single Structure
            13. String Class
            14. Non-CTS Data Types
      3. II. .NET Core Classes Quick Reference
        1. 2. Reference
          1. Finding a Quick-Reference Entry
          2. Reading a Quick-Reference Entry
            1. Type Name, Namespace, Assembly, Type Category, and Flags
            2. Description
            3. Synopsis
              1. Member availability and flags
              2. Functional grouping of members
            4. Class Hierarchy
            5. Cross References
            6. A Note About Type Names
        2. 3. Microsoft.Win32
          1. PowerModeChangedEventArgs
          2. PowerModeChangedEventHandler
          3. PowerModes
          4. Registry
          5. RegistryHive
          6. RegistryKey
          7. SessionEndedEventArgs
          8. SessionEndedEventHandler
          9. SessionEndingEventArgs
          10. SessionEndingEventHandler
          11. SessionEndReasons
          12. SystemEvents
          13. TimerElapsedEventArgs
          14. TimerElapsedEventHandler
          15. UserPreferenceCategory
          16. UserPreferenceChangedEventArgs
          17. UserPreferenceChangedEventHandler
          18. UserPreferenceChangingEventArgs
          19. UserPreferenceChangingEventHandler
        3. 4. System
          1. Activator
          2. AppDomain
          3. AppDomainSetup
          4. AppDomainUnloadedException
          5. ApplicationException
          6. ArgIterator
          7. ArgumentException
          8. ArgumentNullException
          9. ArgumentOutOfRangeException
          10. ArithmeticException
          11. Array
          12. ArrayTypeMismatchException
          13. AssemblyLoadEventArgs
          14. AssemblyLoadEventHandler
          15. AsyncCallback
          16. Attribute
          17. AttributeTargets
          18. AttributeUsageAttribute
          19. BadImageFormatException
          20. BitConverter
          21. Boolean
          22. Buffer
          23. Byte
          24. CannotUnloadAppDomainException
          25. Char
          26. CharEnumerator
          27. CLSCompliantAttribute
          28. Console
          29. ContextBoundObject
          30. ContextMarshalException
          31. ContextStaticAttribute
          32. Convert
          33. CrossAppDomainDelegate
          34. DateTime
          35. DayOfWeek
          36. DBNull
          37. Decimal
          38. Delegate
          39. DivideByZeroException
          40. DllNotFoundException
          41. Double
          42. DuplicateWaitObjectException
          43. EntryPointNotFoundException
          44. Enum
          45. Environment
          46. Environment.SpecialFolder
          47. EventArgs
          48. EventHandler
          49. Exception
          50. ExecutionEngineException
          51. FieldAccessException
          52. FlagsAttribute
          53. FormatException
          54. GC
          55. Guid
          56. IAsyncResult
          57. ICloneable
          58. IComparable
          59. IConvertible
          60. ICustomFormatter
          61. IDisposable
          62. IFormatProvider
          63. IFormattable
          64. IndexOutOfRangeException
          65. Int16
          66. Int32
          67. Int64
          68. IntPtr
          69. InvalidCastException
          70. InvalidOperationException
          71. InvalidProgramException
          72. IServiceProvider
          73. LoaderOptimization
          74. LoaderOptimizationAttribute
          75. LocalDataStoreSlot
          76. MarshalByRefObject
          77. Math
          78. MemberAccessException
          79. MethodAccessException
          80. MissingFieldException
          81. MissingMemberException
          82. MissingMethodException
          83. MTAThreadAttribute
          84. MulticastDelegate
          85. MulticastNotSupportedException
          86. NonSerializedAttribute
          87. NotFiniteNumberException
          88. NotImplementedException
          89. NotSupportedException
          90. NullReferenceException
          91. Object
          92. ObjectDisposedException
          93. ObsoleteAttribute
          94. OperatingSystem
          95. OutOfMemoryException
          96. OverflowException
          97. ParamArrayAttribute
          98. PlatformID
          99. PlatformNotSupportedException
          100. Random
          101. RankException
          102. ResolveEventArgs
          103. ResolveEventHandler
          104. RuntimeTypeHandle
          105. SByte
          106. SerializableAttribute
          107. Single
          108. StackOverflowException
          109. STAThreadAttribute
          110. String
          111. SystemException
          112. ThreadStaticAttribute
          113. TimeSpan
          114. TimeZone
          115. Type
          116. TypeCode
          117. TypeInitializationException
          118. TypeLoadException
          119. TypeUnloadedException
          120. UInt16
          121. UInt32
          122. UInt64
          123. UIntPtr
          124. UnauthorizedAccessException
          125. UnhandledExceptionEventArgs
          126. UnhandledExceptionEventHandler
          127. Uri
          128. UriBuilder
          129. UriFormatException
          130. UriHostNameType
          131. UriPartial
          132. ValueType
          133. Version
          134. Void
          135. WeakReference
        4. 5. System.Collections
          1. ArrayList
          2. BitArray
          3. CaseInsensitiveComparer
          4. CaseInsensitiveHashCodeProvider
          5. CollectionBase
          6. Comparer
          7. DictionaryBase
          8. DictionaryEntry
          9. Hashtable
          10. ICollection
          11. IComparer
          12. IDictionary
          13. IDictionaryEnumerator
          14. IEnumerable
          15. IEnumerator
          16. IHashCodeProvider
          17. IList
          18. Queue
          19. ReadOnlyCollectionBase
          20. SortedList
          21. Stack
        5. 6. System.Collections.Specialized
          1. BitVector32
          2. BitVector32.Section
          3. CollectionsUtil
          4. HybridDictionary
          5. ListDictionary
          6. NameObjectCollectionBase
          7. NameObjectCollectionBase.KeysCollection
          8. NameValueCollection
          9. StringCollection
          10. StringDictionary
          11. StringEnumerator
        6. 7. System.Diagnostics
          1. BooleanSwitch
          2. ConditionalAttribute
          3. CounterCreationData
          4. CounterCreationDataCollection
          5. CounterSample
          6. CounterSampleCalculator
          7. Debug
          8. DebuggableAttribute
          9. Debugger
          10. DebuggerHiddenAttribute
          11. DebuggerStepThroughAttribute
          12. DefaultTraceListener
          13. EntryWrittenEventArgs
          14. EntryWrittenEventHandler
          15. EventLog
          16. EventLogEntry
          17. EventLogEntryCollection
          18. EventLogEntryType
          19. EventLogInstaller
          20. EventLogPermission
          21. EventLogPermissionAccess
          22. EventLogPermissionAttribute
          23. EventLogPermissionEntry
          24. EventLogPermissionEntryCollection
          25. EventLogTraceListener
          26. FileVersionInfo
          27. InstanceData
          28. InstanceDataCollection
          29. InstanceDataCollectionCollection
          30. MonitoringDescriptionAttribute
          31. PerformanceCounter
          32. PerformanceCounterCategory
          33. PerformanceCounterInstaller
          34. PerformanceCounterPermission
          35. PerformanceCounterPermissionAccess
          36. PerformanceCounterPermissionAttribute
          37. PerformanceCounterPermissionEntry
          38. PerformanceCounterPermissionEntryCollection
          39. PerformanceCounterType
          40. Process
          41. ProcessModule
          42. ProcessModuleCollection
          43. ProcessPriorityClass
          44. ProcessStartInfo
          45. ProcessThread
          46. ProcessThreadCollection
          47. ProcessWindowStyle
          48. StackFrame
          49. StackTrace
          50. Switch
          51. TextWriterTraceListener
          52. ThreadPriorityLevel
          53. ThreadState
          54. ThreadWaitReason
          55. Trace
          56. TraceLevel
          57. TraceListener
          58. TraceListenerCollection
          59. TraceSwitch
        7. 8. System.Globalization
          1. Calendar
          2. CalendarWeekRule
          3. CompareInfo
          4. CompareOptions
          5. CultureInfo
          6. CultureTypes
          7. DateTimeFormatInfo
          8. DateTimeStyles
          9. DaylightTime
          10. GregorianCalendar
          11. GregorianCalendarTypes
          12. HebrewCalendar
          13. HijriCalendar
          14. JapaneseCalendar
          15. JulianCalendar
          16. KoreanCalendar
          17. NumberFormatInfo
          18. NumberStyles
          19. RegionInfo
          20. SortKey
          21. StringInfo
          22. TaiwanCalendar
          23. TextElementEnumerator
          24. TextInfo
          25. ThaiBuddhistCalendar
          26. UnicodeCategory
        8. 9. System.IO
          1. BinaryReader
          2. BinaryWriter
          3. BufferedStream
          4. Directory
          5. DirectoryInfo
          6. DirectoryNotFoundException
          7. EndOfStreamException
          8. ErrorEventArgs
          9. ErrorEventHandler
          10. File
          11. FileAccess
          12. FileAttributes
          13. FileInfo
          14. FileLoadException
          15. FileMode
          16. FileNotFoundException
          17. FileShare
          18. FileStream
          19. FileSystemEventArgs
          20. FileSystemEventHandler
          21. FileSystemInfo
          22. FileSystemWatcher
          23. InternalBufferOverflowException
          24. IODescriptionAttribute
          25. IOException
          26. MemoryStream
          27. NotifyFilters
          28. Path
          29. PathTooLongException
          30. RenamedEventArgs
          31. RenamedEventHandler
          32. SeekOrigin
          33. Stream
          34. StreamReader
          35. StreamWriter
          36. StringReader
          37. StringWriter
          38. TextReader
          39. TextWriter
          40. WaitForChangedResult
          41. WatcherChangeTypes
        9. 10. System.IO.IsolatedStorage
          1. INormalizeForIsolatedStorage
          2. IsolatedStorage
          3. IsolatedStorageException
          4. IsolatedStorageFile
          5. IsolatedStorageFileStream
          6. IsolatedStorageScope
        10. 11. System.Net
          1. AuthenticationManager
          2. Authorization
          3. Cookie
          4. CookieCollection
          5. CookieContainer
          6. CookieException
          7. CredentialCache
          8. Dns
          9. DnsPermission
          10. DnsPermissionAttribute
          11. EndPoint
          12. EndpointPermission
          13. FileWebRequest
          14. FileWebResponse
          15. GlobalProxySelection
          16. HttpContinueDelegate
          17. HttpStatusCode
          18. HttpVersion
          19. HttpWebRequest
          20. HttpWebResponse
          21. IAuthenticationModule
          22. ICertificatePolicy
          23. ICredentials
          24. IPAddress
          25. IPEndPoint
          26. IPHostEntry
          27. IWebProxy
          28. IWebRequestCreate
          29. NetworkAccess
          30. NetworkCredential
          31. ProtocolViolationException
          32. ServicePoint
          33. ServicePointManager
          34. SocketAddress
          35. SocketPermission
          36. SocketPermissionAttribute
          37. TransportType
          38. WebClient
          39. WebException
          40. WebExceptionStatus
          41. WebHeaderCollection
          42. WebPermission
          43. WebPermissionAttribute
          44. WebProxy
          45. WebRequest
          46. WebResponse
        11. 12. System.Net.Sockets
          1. AddressFamily
          2. LingerOption
          3. MulticastOption
          4. NetworkStream
          5. ProtocolFamily
          6. ProtocolType
          7. SelectMode
          8. Socket
          9. SocketException
          10. SocketFlags
          11. SocketOptionLevel
          12. SocketOptionName
          13. SocketShutdown
          14. SocketType
          15. TcpClient
          16. TcpListener
          17. UdpClient
        12. 13. System.Reflection
          1. AmbiguousMatchException
          2. Assembly
          3. AssemblyAlgorithmIdAttribute
          4. AssemblyCompanyAttribute
          5. AssemblyConfigurationAttribute
          6. AssemblyCopyrightAttribute
          7. AssemblyCultureAttribute
          8. AssemblyDefaultAliasAttribute
          9. AssemblyDelaySignAttribute
          10. AssemblyDescriptionAttribute
          11. AssemblyFileVersionAttribute
          12. AssemblyFlagsAttribute
          13. AssemblyInformationalVersionAttribute
          14. AssemblyKeyFileAttribute
          15. AssemblyKeyNameAttribute
          16. AssemblyName
          17. AssemblyNameFlags
          18. AssemblyNameProxy
          19. AssemblyProductAttribute
          20. AssemblyTitleAttribute
          21. AssemblyTrademarkAttribute
          22. AssemblyVersionAttribute
          23. Binder
          24. BindingFlags
          25. CallingConventions
          26. ConstructorInfo
          27. CustomAttributeFormatException
          28. DefaultMemberAttribute
          29. EventAttributes
          30. EventInfo
          31. FieldAttributes
          32. FieldInfo
          33. ICustomAttributeProvider
          34. InterfaceMapping
          35. InvalidFilterCriteriaException
          36. IReflect
          37. ManifestResourceInfo
          38. MemberFilter
          39. MemberInfo
          40. MemberTypes
          41. MethodAttributes
          42. MethodBase
          43. MethodImplAttributes
          44. MethodInfo
          45. Missing
          46. Module
          47. ModuleResolveEventHandler
          48. ParameterAttributes
          49. ParameterInfo
          50. ParameterModifier
          51. Pointer
          52. PropertyAttributes
          53. PropertyInfo
          54. ReflectionTypeLoadException
          55. ResourceAttributes
          56. ResourceLocation
          57. StrongNameKeyPair
          58. TargetException
          59. TargetInvocationException
          60. TargetParameterCountException
          61. TypeAttributes
          62. TypeDelegator
          63. TypeFilter
        13. 14. System.Reflection.Emit
          1. AssemblyBuilder
          2. AssemblyBuilderAccess
          3. ConstructorBuilder
          4. CustomAttributeBuilder
          5. EnumBuilder
          6. EventBuilder
          7. EventToken
          8. FieldBuilder
          9. FieldToken
          10. FlowControl
          11. ILGenerator
          12. Label
          13. LocalBuilder
          14. MethodBuilder
          15. MethodRental
          16. MethodToken
          17. ModuleBuilder
          18. OpCode
          19. OpCodes
          20. OpCodeType
          21. OperandType
          22. PackingSize
          23. ParameterBuilder
          24. ParameterToken
          25. PEFileKinds
          26. PropertyBuilder
          27. PropertyToken
          28. SignatureHelper
          29. SignatureToken
          30. StackBehaviour
          31. StringToken
          32. TypeBuilder
          33. TypeToken
          34. UnmanagedMarshal
        14. 15. System.Runtime.InteropServices
          1. ArrayWithOffset
          2. AssemblyRegistrationFlags
          3. CallingConvention
          4. CharSet
          5. ClassInterfaceAttribute
          6. ClassInterfaceType
          7. CoClassAttribute
          8. ComAliasNameAttribute
          9. ComConversionLossAttribute
          10. COMException
          11. ComImportAttribute
          12. ComInterfaceType
          13. ComMemberType
          14. ComRegisterFunctionAttribute
          15. ComSourceInterfacesAttribute
          16. ComUnregisterFunctionAttribute
          17. ComVisibleAttribute
          18. CurrencyWrapper
          19. DispatchWrapper
          20. DispIdAttribute
          21. DllImportAttribute
          22. ErrorWrapper
          23. ExtensibleClassFactory
          24. ExternalException
          25. FieldOffsetAttribute
          26. GCHandle
          27. GCHandleType
          28. GuidAttribute
          29. HandleRef
          30. IDispatchImplAttribute
          31. IDispatchImplType
          32. InAttribute
          33. InterfaceTypeAttribute
          34. InvalidComObjectException
          35. InvalidOleVariantTypeException
          36. IRegistrationServices
          37. LayoutKind
          38. LCIDConversionAttribute
          39. Marshal
          40. MarshalAsAttribute
          41. MarshalDirectiveException
          42. ObjectCreationDelegate
          43. OptionalAttribute
          44. OutAttribute
          45. PreserveSigAttribute
          46. ProgIdAttribute
          47. RegistrationServices
          48. RuntimeEnvironment
          49. SafeArrayRankMismatchException
          50. SafeArrayTypeMismatchException
          51. SEHException
          52. StructLayoutAttribute
          53. UnknownWrapper
          54. UnmanagedType
          55. VarEnum
          56. IExpando
        15. 16. System.Runtime.Serialization
          1. Formatter
          2. FormatterConverter
          3. FormatterServices
          4. IDeserializationCallback
          5. IFormatter
          6. IFormatterConverter
          7. IObjectReference
          8. ISerializable
          9. ISerializationSurrogate
          10. ISurrogateSelector
          11. ObjectIDGenerator
          12. ObjectManager
          13. SerializationBinder
          14. SerializationEntry
          15. SerializationException
          16. SerializationInfo
          17. SerializationInfoEnumerator
          18. StreamingContext
          19. StreamingContextStates
          20. SurrogateSelector
        16. 17. System.Runtime.Serialization.Formatters
          1. BinaryFormatter
          2. FormatterAssemblyStyle
          3. FormatterTypeStyle
          4. IFieldInfo
          5. ISoapMessage
          6. ServerFault
          7. SoapFault
          8. SoapFormatter
          9. SoapMessage
        17. 18. System.Text
          1. ASCIIEncoding
          2. Decoder
          3. Encoder
          4. Encoding
          5. StringBuilder
          6. UnicodeEncoding
          7. UTF7Encoding
          8. UTF8Encoding
        18. 19. System.Text.RegularExpressions
          1. Capture
          2. CaptureCollection
          3. Group
          4. GroupCollection
          5. Match
          6. MatchCollection
          7. MatchEvaluator
          8. Regex
          9. RegexCompilationInfo
          10. RegexOptions
        19. 20. System.Threading
          1. ApartmentState
          2. AutoResetEvent
          3. Interlocked
          4. IOCompletionCallback
          5. LockCookie
          6. ManualResetEvent
          7. Monitor
          8. Mutex
          9. NativeOverlapped
          10. Overlapped
          11. ReaderWriterLock
          12. RegisteredWaitHandle
          13. SynchronizationLockException
          14. Thread
          15. ThreadAbortException
          16. ThreadExceptionEventArgs
          17. ThreadExceptionEventHandler
          18. ThreadInterruptedException
          19. ThreadPool
          20. ThreadPriority
          21. ThreadStart
          22. ThreadState
          23. ThreadStateException
          24. Timeout
          25. Timer
          26. TimerCallback
          27. WaitCallback
          28. WaitHandle
          29. WaitOrTimerCallback
        20. 21. System.Timers
          1. ElapsedEventArgs
          2. ElapsedEventHandler
          3. Timer
          4. TimersDescriptionAttribute
        21. 22. System.Xml
          1. EntityHandling
          2. Formatting
          3. IHasXmlNode
          4. IXmlLineInfo
          5. NameTable
          6. ReadState
          7. ValidationType
          8. WhitespaceHandling
          9. WriteState
          10. XmlAttribute
          11. XmlAttributeCollection
          12. XmlCDataSection
          13. XmlCharacterData
          14. XmlComment
          15. XmlConvert
          16. XmlDataDocument
          17. XmlDeclaration
          18. XmlDocument
          19. XmlDocumentFragment
          20. XmlDocumentType
          21. XmlElement
          22. XmlEntity
          23. XmlEntityReference
          24. XmlException
          25. XmlImplementation
          26. XmlLinkedNode
          27. XmlNamedNodeMap
          28. XmlNamespaceManager
          29. XmlNameTable
          30. XmlNode
          31. XmlNodeChangedAction
          32. XmlNodeChangedEventArgs
          33. XmlNodeChangedEventHandler
          34. XmlNodeList
          35. XmlNodeOrder
          36. XmlNodeReader
          37. XmlNodeType
          38. XmlNotation
          39. XmlParserContext
          40. XmlProcessingInstruction
          41. XmlQualifiedName
          42. XmlReader
          43. XmlResolver
          44. XmlSignificantWhitespace
          45. XmlSpace
          46. XmlText
          47. XmlTextReader
          48. XmlTextWriter
          49. XmlTokenizedType
          50. XmlUrlResolver
          51. XmlValidatingReader
          52. XmlWhitespace
          53. XmlWriter
        22. 23. System.Xml.XPath
          1. IXPathNavigable
          2. XmlCaseOrder
          3. XmlDataType
          4. XmlSortOrder
          5. XPathDocument
          6. XPathException
          7. XPathExpression
          8. XPathNamespaceScope
          9. XPathNavigator
          10. XPathNodeIterator
          11. XPathNodeType
          12. XPathResultType
        23. 24. System.Xml.Xsl
          1. IXsltContextFunction
          2. IXsltContextVariable
          3. XsltArgumentList
          4. XsltCompileException
          5. XsltContext
          6. XsltException
          7. XslTransform
      4. III. Appendixes
        1. A. Regular Expressions
        2. B. Format Specifiers
          1. Picture Format Specifiers
          2. DateTime Format Specifiers
        3. C. Data Marshaling
        4. D. Namespaces and Assemblies
        5. Type, Method, Property, Event, and Field Index
      5. Index
      6. Colophon