Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

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)
[StandardModuleAttribute]
public sealed 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.
Public methodGetHashCodeServes as the default hash function. (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 memberIsNumericReturns a Boolean value indicating whether an expression can be evaluated as a number.
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.
Public methodStatic memberQBColorReturns an Integer value representing the RGB color code corresponding to the specified color number.
Public methodStatic memberRGBReturns an Integer value representing an RGB color value from a set of red, green and blue color components.
Public methodStatic memberSystemTypeNameReturns a String value containing the system data type name of a variable.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodStatic memberTypeNameReturns a String value containing data-type information about a variable.
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.
Public methodStatic memberVbTypeNameReturns a String value containing the Visual Basic data type name 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.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.