Information Class
.NET Framework 4.5
The Information module contains the procedures used to return, test for, or verify information.
Namespace: Microsoft.VisualBasic
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
The Information type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() ![]() | Erl | Returns an integer indicating the line number of the last executed statement. Read-only. |
![]() ![]() | Err | Contains information about run-time errors. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | IsArray | Returns a Boolean value indicating whether a variable points to an array. |
![]() ![]() | IsDate | Returns a Boolean value indicating whether an expression represents a valid Date value. |
![]() ![]() | IsDBNull | Returns a Boolean value indicating whether an expression evaluates to the System.DBNull class. |
![]() ![]() | IsError | Returns a Boolean value indicating whether an expression is an exception type. |
![]() ![]() | IsNothing | Returns a Boolean value indicating whether an expression has no object assigned to it. |
![]() ![]() | IsNumeric | Returns a Boolean value indicating whether an expression can be evaluated as a number. |
![]() ![]() | IsReference | Returns a Boolean value indicating whether an expression evaluates to a reference type. |
![]() ![]() | LBound | Returns the lowest available subscript for the indicated dimension of an array. |
![]() ![]() | QBColor | Returns an Integer value representing the RGB color code corresponding to the specified color number. |
![]() ![]() | RGB | Returns an Integer value representing an RGB color value from a set of red, green and blue color components. |
![]() ![]() | SystemTypeName | Returns a String value containing the system data type name of a variable. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() ![]() | TypeName | Returns a String value containing data-type information about a variable. |
![]() ![]() | UBound | Returns the highest available subscript for the indicated dimension of an array. |
![]() ![]() | VarType | Returns an Integer value containing the data type classification of a variable. |
![]() ![]() | VbTypeName | Returns a String value containing the Visual Basic data type name of a variable. |
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.
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.
