Export (0) Print
Expand All

Information Class

The Information module contains the procedures used to return, test for, or verify information.

System.Object
  Microsoft.VisualBasic.Information

Namespace:  Microsoft.VisualBasic
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

'Declaration
<StandardModuleAttribute> _
Public NotInheritable Class Information

The Information type exposes the following members.

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodStatic memberErlReturns an integer indicating the line number of the last executed statement. Read-only.
Public methodStatic memberErrContains information about run-time errors.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberIsArrayReturns a Boolean value indicating whether a variable points to an array.
Public methodStatic memberIsDateReturns a Boolean value indicating whether an expression represents a valid Date value.
Public methodStatic memberIsDBNullReturns a Boolean value indicating whether an expression evaluates to the System.DBNull class.
Public methodStatic memberIsErrorReturns a Boolean value indicating whether an expression is an exception type.
Public methodStatic memberIsNothingReturns a Boolean value indicating whether an expression has no object assigned to it.
Public methodStatic memberIsReferenceReturns a Boolean value indicating whether an expression evaluates to a reference type.
Public methodStatic memberLBoundReturns the lowest available subscript for the indicated dimension of an array.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodStatic memberUBoundReturns the highest available subscript for the indicated dimension of an array.
Public methodStatic memberVarTypeReturns an Integer value containing the data type classification of a variable.
Top

This module supports the Visual Basic language keywords and run-time library members that provide error information, validate data, determine array bounds, and retrieve data type and color information.

The following example uses the VbTypeName function to return data type names for several variables.

Dim sysDateName As String = "System.DateTime"
Dim sysShortName As String = "Int16"
Dim sysBadName As String = "Nonsense"
Dim testVbName As String
testVbName = VbTypeName(sysDateName) 
' Returns "Date".
testVbName = VbTypeName(sysShortName) 
' Returns "Short".
testVbName = VbTypeName(sysBadName) 
' Returns Nothing.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft