Constants Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
The Constants module contains miscellaneous constants. These constants can be used anywhere in your code.
Inheritance Hierarchy
System.Object
Microsoft.VisualBasic.Constants
Namespace: Microsoft.VisualBasic
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
Syntax
'Declaration
<StandardModuleAttribute> _
Public NotInheritable Class Constants
[StandardModuleAttribute]
public sealed class Constants
The Constants type exposes the following members.
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Fields
Name | Description | |
---|---|---|
vbArray | Indicates the type of a variant object, returned by the VarType function. | |
vbBack | Represents a backspace character for print and display functions. | |
vbBinaryCompare | Indicates how to compare strings when calling comparison functions. | |
vbBoolean | Indicates the type of a variant object, returned by the VarType function. | |
vbByte | Indicates the type of a variant object, returned by the VarType function. | |
vbCr | Represents a carriage-return character for print and display functions. | |
vbCrLf | Represents a carriage-return character combined with a linefeed character for print and display functions. | |
vbCurrency | Indicates the type of a variant object, returned by the VarType function. | |
vbDate | Indicates the type of a variant object, returned by the VarType function. | |
vbDecimal | Indicates the type of a variant object, returned by the VarType function. | |
vbDouble | Indicates the type of a variant object, returned by the VarType function. | |
vbEmpty | Indicates the type of a variant object, returned by the VarType function. | |
vbFalse | Indicates a Boolean value or whether the default should be used when calling number-formatting functions. | |
vbFirstFourDays | Indicates the first week of the year to use when calling date-related functions. | |
vbFirstFullWeek | Indicates the first week of the year to use when calling date-related functions. | |
vbFirstJan1 | Indicates the first week of the year to use when calling date-related functions. | |
vbFormFeed | Represents a form-feed character for print functions. | |
vbFriday | Indicates the first day of the week to use when calling date-related functions. | |
vbGeneralDate | Indicates how to display dates when calling the FormatDateTime function. | |
vbGet | Indicates the type of procedure being invoked. | |
vbInteger | Indicates the type of a variant object, returned by the VarType function. | |
vbLet | Indicates the type of procedure being invoked. | |
vbLf | Represents a linefeed character for print and display functions. | |
vbLong | Indicates the type of a variant object, returned by the VarType function. | |
vbLongDate | Indicates how to display dates when calling the FormatDateTime function. | |
vbLongTime | Indicates how to display dates when calling the FormatDateTime function. | |
vbMethod | Indicates the type of procedure being invoked. | |
vbMonday | Indicates the first day of the week to use when calling date-related functions. | |
vbNewLine | Represents a newline character for print and display functions. | |
vbNull | Indicates the type of a variant object, returned by the VarType function. | |
vbNullChar | Represents a null character for print and display functions. | |
vbNullString | Represents a zero-length string for print and display functions, and for calling external procedures. | |
vbObject | Indicates the type of a variant object, returned by the VarType function. | |
vbObjectError | Represents the object error number. User-defined error numbers should be greater than this value. | |
vbSaturday | Indicates the first day of the week to use when calling date-related functions. | |
vbSet | Indicates the type of procedure being invoked. | |
vbShortDate | Indicates how to display dates when calling the FormatDateTime function. | |
vbShortTime | Indicates how to display dates when calling the FormatDateTime function. | |
vbSingle | Indicates the type of a variant object, returned by the VarType function. | |
vbString | Indicates the type of a variant object, returned by the VarType function. | |
vbSunday | Indicates the first day of the week to use when calling date-related functions. | |
vbTab | Represents a tab character for print and display functions. | |
vbTextCompare | Indicates how to compare strings when calling comparison functions. | |
vbThursday | Indicates the first day of the week to use when calling date-related functions. | |
vbTrue | Indicates a Boolean value or whether the default should be used when calling number-formatting functions. | |
vbTuesday | Indicates the first day of the week to use when calling date-related functions. | |
vbUseDefault | Indicates a Boolean value or whether the default should be used when calling number-formatting functions. | |
vbUserDefinedType | Indicates the type of a variant object, returned by the VarType function. | |
vbUseSystem | Indicates the first week of the year to use when calling date-related functions. | |
vbUseSystemDayOfWeek | Indicates the first day of the week to use when calling date-related functions. | |
vbVariant | Indicates the type of a variant object, returned by the VarType function. | |
vbVerticalTab | Represents a carriage-return character for print functions. | |
vbWednesday | Indicates the first day of the week to use when calling date-related functions. |
Top
Remarks
This module supports the Visual Basic language constants that correspond to the members of many Visual Basic enumerations:
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.