Export (0) Print
Expand All

Constants Class

The Constants module contains miscellaneous constants. These constants can be used anywhere in your code.

System.Object
  Microsoft.VisualBasic.Constants

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

[StandardModuleAttribute]
public sealed class Constants

The Constants type exposes the following members.

  NameDescription
Public methodSupported in .NET for Windows Store appsEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodSupported in .NET for Windows Store appsGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported in .NET for Windows Store appsGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSupported in .NET for Windows Store appsToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public fieldStatic membervbAbortIndicates that the Abort button was clicked in a message box. Returned by the MsgBox function.
Public fieldStatic membervbAbortRetryIgnoreIndicates that the Abort, Retry, and Ignore buttons will be displayed when the MsgBox function is called.
Public fieldStatic membervbApplicationModalIndicates that the message box will be displayed as a modal dialog box when the MsgBox function is called.
Public fieldStatic membervbArchiveIndicates that the file has changed since the last backup operation for file-access functions.
Public fieldStatic membervbArrayIndicates that the type of a variant object is an array. Returned by the VarType function.
Public fieldStatic memberSupported in .NET for Windows Store appsvbBackRepresents a backspace character for print and display functions.
Public fieldStatic membervbBinaryCompareSpecifies that a binary comparison should be performed when comparison functions are called.
Public fieldStatic membervbBooleanIndicates that the type of a variant object is Boolean. Returned by the VarType function.
Public fieldStatic membervbByteIndicates that the type of a variant object is Byte. Returned by the VarType function.
Public fieldStatic membervbCancelIndicates that the Cancel button was clicked in a message box. Returned by the MsgBox function.
Public fieldStatic memberSupported in .NET for Windows Store appsvbCrRepresents a carriage-return character for print and display functions.
Public fieldStatic membervbCriticalIndicates that the critical message icon will be displayed when the MsgBox function is called.
Public fieldStatic memberSupported in .NET for Windows Store appsvbCrLfRepresents a carriage-return character combined with a linefeed character for print and display functions.
Public fieldStatic membervbCurrencyIndicates that the type of a variant object is Currency. Returned by the VarType function.
Public fieldStatic membervbDateIndicates that the type of a variant object is Date. Returned by the VarType function.
Public fieldStatic membervbDecimalIndicates that the type of a variant object is Decimal. Returned by the VarType function.
Public fieldStatic membervbDefaultButton1Indicates that the leftmost button is selected as the default button when the message box appears.
Public fieldStatic membervbDefaultButton2Indicates that the second button from the left is selected as the default button when the message box appears.
Public fieldStatic membervbDefaultButton3Indicates that the third button from the left is selected as the default button when the message box appears.
Public fieldStatic membervbDirectoryIndicates that the file is a directory or folder for file-access functions.
Public fieldStatic membervbDoubleIndicates that the type of a variant object is Double. Returned by the VarType function.
Public fieldStatic membervbEmptyIndicates that the type of a variant object is Empty. Returned by the VarType function.
Public fieldStatic membervbExclamationIndicates that the exclamation icon will be displayed when the MsgBox function is called.
Public fieldStatic membervbFalseIndicates that a Boolean value of False should be used when number-formatting functions are called.
Public fieldStatic membervbFirstFourDaysIndicates that the first week of the year that has at least four days should be used when date-related functions are called.
Public fieldStatic membervbFirstFullWeekIndicates that the first full week of the year should be used when date-related functions are called.
Public fieldStatic membervbFirstJan1Indicates that the week of the year in which January 1 occurs should be used when date-related functions are called.
Public fieldStatic memberSupported in .NET for Windows Store appsvbFormFeedRepresents a form-feed character for print functions.
Public fieldStatic membervbFridaySpecifies that Friday should be used as the first day of the week when date-related functions are called.
Public fieldStatic membervbGeneralDateIndicates that the general date format for the current culture should be used when the FormatDateTime function is called.
Public fieldStatic membervbGetSpecifies that a property value should be retrieved when the CallByName function is called.
Public fieldStatic membervbHiddenIndicates that the file is a hidden file for file-access functions.
Public fieldStatic membervbHideIndicates that the window style is hidden for the invoked program when the Shell function is called.
Public fieldStatic membervbHiraganaIndicates Hiragana characters should be converted to Katakana characters when the StrConv function is called.
Public fieldStatic membervbIgnoreIndicates that the Ignore button was clicked in a message box. Returned by the MsgBox function.
Public fieldStatic membervbInformationIndicates that the information icon will display when the MsgBox function is called.
Public fieldStatic membervbIntegerIndicates that the type of a variant object is Integer. Returned by the VarType function.
Public fieldStatic membervbKatakanaIndicates that Katakana characters should be converted to Hiragana characters when the StrConv function is called.
Public fieldStatic membervbLetIndicates that a property value should be set to an object instance when the CallByName function is called.
Public fieldStatic memberSupported in .NET for Windows Store appsvbLfRepresents a linefeed character for print and display functions.
Public fieldStatic membervbLinguisticCasingIndicates that characters should be converted to use linguistic rules for casing instead of file system rules for casing to when the StrConv function is called.
Public fieldStatic membervbLongIndicates the type of a variant object is Long. Returned by the VarType function.
Public fieldStatic membervbLongDateIndicates that the long date format for the current culture should be used when the FormatDateTime function is called.
Public fieldStatic membervbLongTimeIndicates that the long time format for the current culture should be used when the FormatDateTime function is called.
Public fieldStatic membervbLowerCaseIndicates that characters should be converted to lowercase when the StrConv function is called.
Public fieldStatic membervbMaximizedFocusIndicates that the window style is maximized with focus for the invoked program when the Shell function is called.
Public fieldStatic membervbMethodSpecifies that a method should be called when the CallByName function is called.
Public fieldStatic membervbMinimizedFocusIndicates that the window style is minimized with focus for the invoked program when the Shell function is called.
Public fieldStatic membervbMinimizedNoFocusIndicates that the window style is minimized without focus for the invoked program when the Shell function is called.
Public fieldStatic membervbMondaySpecifies that Monday should be used as the first day of the week when date-related functions are called.
Public fieldStatic membervbMsgBoxHelpIndicates that the Help button will be displayed when the MsgBox function is called.
Public fieldStatic membervbMsgBoxRightIndicates that text will be right-aligned when the MsgBox function is called.
Public fieldStatic membervbMsgBoxRtlReadingIndicates that right-to-left reading text (Hebrew and Arabic systems) will be displayed when the MsgBox function is called.
Public fieldStatic membervbMsgBoxSetForegroundIndicates that the message box will display in the foreground when the MsgBox function is called.
Public fieldStatic membervbNarrowIndicates that wide (double-byte) characters should be converted to narrow (single-byte) characters when the StrConv function is called.
Public fieldStatic memberSupported in .NET for Windows Store appsvbNewLineRepresents a newline character for print and display functions.
Public fieldStatic membervbNoIndicates that the No button was clicked in a message box. Returned by the MsgBox function.
Public fieldStatic membervbNormalIndicates that the file is a normal file for file-access functions.
Public fieldStatic membervbNormalFocusIndicates that the window style is normal with focus for the invoked program when the Shell function is called.
Public fieldStatic membervbNormalNoFocusIndicates that the window style is normal without focus for the invoked program when the Shell function is called.
Public fieldStatic membervbNullIndicates that the type of a variant object is Nothing. Returned by the VarType function.
Public fieldStatic memberSupported in .NET for Windows Store appsvbNullCharRepresents a null character for print and display functions.
Public fieldStatic memberSupported in .NET for Windows Store appsvbNullStringRepresents a zero-length string for print and display functions, and for calling external procedures.
Public fieldStatic membervbObjectIndicates that the type of a variant object is Object. Returned by the VarType function.
Public fieldStatic membervbObjectErrorRepresents the object error number. User-defined error numbers should be greater than this value.
Public fieldStatic membervbOKIndicates that the OK button was clicked in a message box. Returned by the MsgBox function.
Public fieldStatic membervbOKCancelIndicates that the OK and Cancel buttons will be displayed when the MsgBox function is called.
Public fieldStatic membervbOKOnlyIndicates that only the OK button will be displayed when the MsgBox function is called.
Public fieldStatic membervbProperCaseIndicates that the first letter of every word in a string should be converted to uppercase and the remaining characters to lowercase when the StrConv function is called.
Public fieldStatic membervbQuestionIndicates that the question icon will be displayed when the MsgBox function is called.
Public fieldStatic membervbReadOnlyIndicates that the file is a read-only file for file-access functions.
Public fieldStatic membervbRetryIndicates that the Retry button was clicked in a message box. Returned by the MsgBox function.
Public fieldStatic membervbRetryCancelIndicates that the Retry and Cancel buttons will be displayed when the MsgBox function is called.
Public fieldStatic membervbSaturdaySpecifies that Saturday should be used as the first day of the week when date-related functions are called.
Public fieldStatic membervbSetIndicates that a property value should be set when the CallByName function is called.
Public fieldStatic membervbShortDateIndicates that the short-date format for the current culture should be used when the FormatDateTime function is called.
Public fieldStatic membervbShortTimeIndicates that the short-time format for the current culture should be used when the FormatDateTime function is called.
Public fieldStatic membervbSimplifiedChineseIndicates that characters should be converted to Simplified Chinese when the StrConv function is called.
Public fieldStatic membervbSingleIndicates that the type of a variant object is Single. Returned by the VarType function.
Public fieldStatic membervbStringIndicates that the type of a variant object is String. Returned by the VarType function.
Public fieldStatic membervbSundaySpecifies that Sunday should be used as the first day of the week when date-related functions are called.
Public fieldStatic membervbSystemIndicates that the file is a system file for file-access functions.
Public fieldStatic membervbSystemModalIndicates that the message box will be displayed as a modal dialog box when the MsgBox function is called.
Public fieldStatic memberSupported in .NET for Windows Store appsvbTabRepresents a tab character for print and display functions.
Public fieldStatic membervbTextCompareIndicates that a text comparison should be performed when comparison functions are called.
Public fieldStatic membervbThursdaySpecifies that Thursday should be used as the first day of the week when date-related functions are called.
Public fieldStatic membervbTraditionalChineseIndicates that characters should be converted to Traditional Chinese when the StrConv function is called.
Public fieldStatic membervbTrueIndicates that a Boolean value of True should be used when number-formatting functions are called.
Public fieldStatic membervbTuesdaySpecifies that Tuesday should be used as the first day of the week when date-related functions are called.
Public fieldStatic membervbUpperCaseIndicates that characters should be converted to uppercase when the StrConv function is called.
Public fieldStatic membervbUseDefaultIndicates that the default Boolean value should be used when number-formatting functions are called.
Public fieldStatic membervbUserDefinedTypeIndicates that the type of a variant object is a user-defined type. Returned by the VarType function.
Public fieldStatic membervbUseSystemIndicates that the week specified by your system as the first week of the year should be used when date-related functions are called.
Public fieldStatic membervbUseSystemDayOfWeekIndicates that the day specified by your system as the first day of the week should be used when date-related functions are called.
Public fieldStatic membervbVariantIndicates that the type of a variant object is Variant. Returned by the VarType function.
Public fieldStatic memberSupported in .NET for Windows Store appsvbVerticalTabRepresents a carriage-return character for print functions.
Public fieldStatic membervbVolumeIndicates the volume label file attribute for file-access functions.
Public fieldStatic membervbWednesdaySpecifies that Wednesday should be used as the first day of the week when date-related functions are called.
Public fieldStatic membervbWideIndicates that narrow (single-byte) characters should be converted to wide (double-byte) characters when the StrConv function is called.
Public fieldStatic membervbYesIndicates that the Yes button was clicked in a message box. Returned by the MsgBox function.
Public fieldStatic membervbYesNoIndicates that the Yes and No buttons will be displayed when the MsgBox function is called.
Public fieldStatic membervbYesNoCancelIndicates that the Yes, No, and Cancel buttons will be displayed when the MsgBox function is called.
Top

This module supports the Visual Basic language constants that correspond to the members of many Visual Basic enumerations:

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Store apps

Supported in: Windows 8

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Windows Phone 8.1, 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.
Show:
© 2014 Microsoft