Constants Constants Constants Constants Class

定义

Constants 模块包含杂项常数。The Constants module contains miscellaneous constants. 这些常量可以在代码中的任何地方使用。These constants can be used anywhere in your code.

public ref class Constants sealed
[Microsoft.VisualBasic.CompilerServices.StandardModule]
public sealed class Constants
type Constants = class
Public Module Constants
继承
ConstantsConstantsConstantsConstants
属性

注解

此模块支持对应于很多 Visual Basic 枚举的成员的 Visual Basic 语言常量:This module supports the Visual Basic language constants that correspond to the members of many Visual Basic enumerations:

字段

vbAbort vbAbort vbAbort vbAbort

指示在某个消息框中单击了 Abort 按钮。Indicates that the Abort button was clicked in a message box. MsgBox 函数返回。Returned by the MsgBox function.

vbAbortRetryIgnore vbAbortRetryIgnore vbAbortRetryIgnore vbAbortRetryIgnore

指示在调用 Abort 函数时,将显示 RetryIgnoreMsgBox 按钮。Indicates that the Abort, Retry, and Ignore buttons will be displayed when the MsgBox function is called.

vbApplicationModal vbApplicationModal vbApplicationModal vbApplicationModal

指示在调用 MsgBox 函数时,将消息框显示为模式对话框。Indicates that the message box will be displayed as a modal dialog box when the MsgBox function is called.

vbArchive vbArchive vbArchive vbArchive

指示自最后一次针对文件访问函数执行备份操作以来该文件已发生更改。Indicates that the file has changed since the last backup operation for file-access functions.

vbArray vbArray vbArray vbArray

指示变量对象的类型为数组。Indicates that the type of a variant object is an array. VarType 函数返回。Returned by the VarType function.

vbBack vbBack vbBack vbBack

表示用于打印和显示功能的退格符。Represents a backspace character for print and display functions.

vbBinaryCompare vbBinaryCompare vbBinaryCompare vbBinaryCompare

指定在调用比较函数时应执行二进制比较。Specifies that a binary comparison should be performed when comparison functions are called.

vbBoolean vbBoolean vbBoolean vbBoolean

指示变量对象的类型为 BooleanIndicates that the type of a variant object is Boolean. VarType 函数返回。Returned by the VarType function.

vbByte vbByte vbByte vbByte

指示变量对象的类型为 ByteIndicates that the type of a variant object is Byte. VarType 函数返回。Returned by the VarType function.

vbCancel vbCancel vbCancel vbCancel

指示在某个消息框中单击了 Cancel 按钮。Indicates that the Cancel button was clicked in a message box. MsgBox 函数返回。Returned by the MsgBox function.

vbCr vbCr vbCr vbCr

表示用于打印和显示功能的回车符。Represents a carriage-return character for print and display functions.

vbCritical vbCritical vbCritical vbCritical

指示在调用 MsgBox 函数时,将显示关键消息图标。Indicates that the critical message icon will be displayed when the MsgBox function is called.

vbCrLf vbCrLf vbCrLf vbCrLf

表示用于打印和显示功能的回车符和换行符的组合。Represents a carriage-return character combined with a linefeed character for print and display functions.

vbCurrency vbCurrency vbCurrency vbCurrency

指示变量对象的类型为 CurrencyIndicates that the type of a variant object is Currency. VarType 函数返回。Returned by the VarType function.

vbDate vbDate vbDate vbDate

指示变量对象的类型为 DateIndicates that the type of a variant object is Date. VarType 函数返回。Returned by the VarType function.

vbDecimal vbDecimal vbDecimal vbDecimal

指示变量对象的类型为 DecimalIndicates that the type of a variant object is Decimal. VarType 函数返回。Returned by the VarType function.

vbDefaultButton1 vbDefaultButton1 vbDefaultButton1 vbDefaultButton1

指示在显示消息框时将最左侧的按钮作为默认按钮选中。Indicates that the leftmost button is selected as the default button when the message box appears.

vbDefaultButton2 vbDefaultButton2 vbDefaultButton2 vbDefaultButton2

指示在显示消息框时将左侧起的第二个按钮作为默认按钮选中。Indicates that the second button from the left is selected as the default button when the message box appears.

vbDefaultButton3 vbDefaultButton3 vbDefaultButton3 vbDefaultButton3

指示在显示消息框时将左侧起的第三个按钮作为默认按钮选中。Indicates that the third button from the left is selected as the default button when the message box appears.

vbDirectory vbDirectory vbDirectory vbDirectory

指示该文件是包含文件访问函数的目录或文件夹。Indicates that the file is a directory or folder for file-access functions.

vbDouble vbDouble vbDouble vbDouble

指示变量对象的类型为 DoubleIndicates that the type of a variant object is Double. VarType 函数返回。Returned by the VarType function.

vbEmpty vbEmpty vbEmpty vbEmpty

指示变量对象的类型为 EmptyIndicates that the type of a variant object is Empty. VarType 函数返回。Returned by the VarType function.

vbExclamation vbExclamation vbExclamation vbExclamation

指示在调用 MsgBox 函数时,将显示惊叹号图标。Indicates that the exclamation icon will be displayed when the MsgBox function is called.

vbFalse vbFalse vbFalse vbFalse

指示在调用数字格式设置函数时应使用 BooleanFalseIndicates that a Boolean value of False should be used when number-formatting functions are called.

vbFirstFourDays vbFirstFourDays vbFirstFourDays vbFirstFourDays

指示在调用与日期相关的函数时,应使用一年中第一个至少包含四天的周。Indicates that the first week of the year that has at least four days should be used when date-related functions are called.

vbFirstFullWeek vbFirstFullWeek vbFirstFullWeek vbFirstFullWeek

指示在调用与日期相关的函数时,应使用一年中第一个完整的周。Indicates that the first full week of the year should be used when date-related functions are called.

vbFirstJan1 vbFirstJan1 vbFirstJan1 vbFirstJan1

指示在调用与日期相关的函数时,应使用一年中 1 月 1 日所在的周。Indicates that the week of the year in which January 1 occurs should be used when date-related functions are called.

vbFormFeed vbFormFeed vbFormFeed vbFormFeed

表示用于打印功能的换页符。Represents a form-feed character for print functions.

vbFriday vbFriday vbFriday vbFriday

指示在调用与日期相关的函数时,应将星期五用作一周的第一天。Specifies that Friday should be used as the first day of the week when date-related functions are called.

vbGeneralDate vbGeneralDate vbGeneralDate vbGeneralDate

指示在调用 FormatDateTime 函数时,应使用当前区域性的常规日期格式。Indicates that the general date format for the current culture should be used when the FormatDateTime function is called.

vbGet vbGet vbGet vbGet

指定在调用 CallByName 函数时,应检索一个属性值。Specifies that a property value should be retrieved when the CallByName function is called.

vbHidden vbHidden vbHidden vbHidden

指示该文件是包含文件访问函数的隐藏文件。Indicates that the file is a hidden file for file-access functions.

vbHide vbHide vbHide vbHide

指示在调用 Shell 函数时,将对所调用程序隐藏窗口样式。Indicates that the window style is hidden for the invoked program when the Shell function is called.

vbHiragana vbHiragana vbHiragana vbHiragana

指示在调用 StrConv 函数时,应将平假名字符转换为片假名字符。Indicates Hiragana characters should be converted to Katakana characters when the StrConv function is called.

vbIgnore vbIgnore vbIgnore vbIgnore

指示在某个消息框中单击了 Ignore 按钮。Indicates that the Ignore button was clicked in a message box. MsgBox 函数返回。Returned by the MsgBox function.

vbInformation vbInformation vbInformation vbInformation

指示在调用 MsgBox 函数时,将显示信息图标。Indicates that the information icon will display when the MsgBox function is called.

vbInteger vbInteger vbInteger vbInteger

指示变量对象的类型为 IntegerIndicates that the type of a variant object is Integer. VarType 函数返回。Returned by the VarType function.

vbKatakana vbKatakana vbKatakana vbKatakana

指示在调用 StrConv 函数时,应将片假名字符转换为平假名字符。Indicates that Katakana characters should be converted to Hiragana characters when the StrConv function is called.

vbLet vbLet vbLet vbLet

指示在调用 CallByName 函数时,应将属性值设置为对象实例。Indicates that a property value should be set to an object instance when the CallByName function is called.

vbLf vbLf vbLf vbLf

表示用于打印和显示功能的换行字符。Represents a linefeed character for print and display functions.

vbLinguisticCasing vbLinguisticCasing vbLinguisticCasing vbLinguisticCasing

指示在调用 StrConv 函数时,应将字符转换为使用语言规则进行大小写,而不使用文件系统规则进行大小写。Indicates 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.

vbLong vbLong vbLong vbLong

指示变量对象的类型为 LongIndicates the type of a variant object is Long. VarType 函数返回。Returned by the VarType function.

vbLongDate vbLongDate vbLongDate vbLongDate

指示在调用 FormatDateTime 函数时,应使用当前区域性的长日期格式。Indicates that the long date format for the current culture should be used when the FormatDateTime function is called.

vbLongTime vbLongTime vbLongTime vbLongTime

指示在调用 FormatDateTime 函数时,应使用当前区域性的长时间格式。Indicates that the long time format for the current culture should be used when the FormatDateTime function is called.

vbLowerCase vbLowerCase vbLowerCase vbLowerCase

指示在调用 StrConv 函数时,应将字符转换为小写字符。Indicates that characters should be converted to lowercase when the StrConv function is called.

vbMaximizedFocus vbMaximizedFocus vbMaximizedFocus vbMaximizedFocus

指示在调用 Shell 函数时,将使窗口样式最大化并将焦点提供给所调用的程序。Indicates that the window style is maximized with focus for the invoked program when the Shell function is called.

vbMethod vbMethod vbMethod vbMethod

指定在调用 CallByName 函数时,应调用一个方法。Specifies that a method should be called when the CallByName function is called.

vbMinimizedFocus vbMinimizedFocus vbMinimizedFocus vbMinimizedFocus

指示在调用 Shell 函数时,将使窗口样式最小化并将焦点提供给所调用的程序。Indicates that the window style is minimized with focus for the invoked program when the Shell function is called.

vbMinimizedNoFocus vbMinimizedNoFocus vbMinimizedNoFocus vbMinimizedNoFocus

指示在调用 Shell 函数时,将使窗口样式最小化,但不将焦点提供给所调用的程序。Indicates that the window style is minimized without focus for the invoked program when the Shell function is called.

vbMonday vbMonday vbMonday vbMonday

指示在调用与日期相关的函数时,应将星期一用作一周的第一天。Specifies that Monday should be used as the first day of the week when date-related functions are called.

vbMsgBoxHelp vbMsgBoxHelp vbMsgBoxHelp vbMsgBoxHelp

指示在调用 Help 函数时,将显示 MsgBox 按钮。Indicates that the Help button will be displayed when the MsgBox function is called.

vbMsgBoxRight vbMsgBoxRight vbMsgBoxRight vbMsgBoxRight

指示在调用 MsgBox 函数时,将使文本右对齐。Indicates that text will be right-aligned when the MsgBox function is called.

vbMsgBoxRtlReading vbMsgBoxRtlReading vbMsgBoxRtlReading vbMsgBoxRtlReading

指示在调用 MsgBox 函数时,将显示从右向左阅读的文本(希伯来语和阿拉伯语系统)。Indicates that right-to-left reading text (Hebrew and Arabic systems) will be displayed when the MsgBox function is called.

vbMsgBoxSetForeground vbMsgBoxSetForeground vbMsgBoxSetForeground vbMsgBoxSetForeground

指示在调用 MsgBox 函数时,将在前台显示消息框。Indicates that the message box will display in the foreground when the MsgBox function is called.

vbNarrow vbNarrow vbNarrow vbNarrow

指示在调用 StrConv 函数时,应将宽(双字节)字符转换为窄(单字节)字符。Indicates that wide (double-byte) characters should be converted to narrow (single-byte) characters when the StrConv function is called.

vbNewLine vbNewLine vbNewLine vbNewLine

表示用于打印和显示功能的换行字符。Represents a newline character for print and display functions.

vbNo vbNo vbNo vbNo

指示在某个消息框中单击了 No 按钮。Indicates that the No button was clicked in a message box. MsgBox 函数返回。Returned by the MsgBox function.

vbNormal vbNormal vbNormal vbNormal

指示该文件是包含文件访问函数的常规文件。Indicates that the file is a normal file for file-access functions.

vbNormalFocus vbNormalFocus vbNormalFocus vbNormalFocus

指示在调用 Shell 函数时,将正常显示窗口样式并将焦点提供给所调用的程序。Indicates that the window style is normal with focus for the invoked program when the Shell function is called.

vbNormalNoFocus vbNormalNoFocus vbNormalNoFocus vbNormalNoFocus

指示在调用 Shell 函数时,将正常显示窗口样式,但不将焦点提供给所调用的程序。Indicates that the window style is normal without focus for the invoked program when the Shell function is called.

vbNull vbNull vbNull vbNull

指示变量对象的类型为 NothingIndicates that the type of a variant object is Nothing. VarType 函数返回。Returned by the VarType function.

vbNullChar vbNullChar vbNullChar vbNullChar

表示用于打印和显示功能的 null 字符。Represents a null character for print and display functions.

vbNullString vbNullString vbNullString vbNullString

表示用于打印和显示功能以及用于调用外部过程的零长度字符串。Represents a zero-length string for print and display functions, and for calling external procedures.

vbObject vbObject vbObject vbObject

指示变量对象的类型为 ObjectIndicates that the type of a variant object is Object. VarType 函数返回。Returned by the VarType function.

vbObjectError vbObjectError vbObjectError vbObjectError

表示对象错误号。Represents the object error number. 用户定义的错误号应当大于此值。User-defined error numbers should be greater than this value.

vbOK vbOK vbOK vbOK

指示在某个消息框中单击了 OK 按钮。Indicates that the OK button was clicked in a message box. MsgBox 函数返回。Returned by the MsgBox function.

vbOKCancel vbOKCancel vbOKCancel vbOKCancel

指示在调用 OK 函数时,将显示 CancelMsgBox 按钮。Indicates that the OK and Cancel buttons will be displayed when the MsgBox function is called.

vbOKOnly vbOKOnly vbOKOnly vbOKOnly

指示在调用 OK 函数时,将只显示 MsgBox 按钮。Indicates that only the OK button will be displayed when the MsgBox function is called.

vbProperCase vbProperCase vbProperCase vbProperCase

指示在调用 StrConv 函数时,应将字符串中每个单词的第一个字母转换为大写,并将其余字符转换为小写。Indicates 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.

vbQuestion vbQuestion vbQuestion vbQuestion

指示在调用 MsgBox 函数时,将显示问号图标。Indicates that the question icon will be displayed when the MsgBox function is called.

vbReadOnly vbReadOnly vbReadOnly vbReadOnly

指示该文件是包含文件访问函数的只读文件。Indicates that the file is a read-only file for file-access functions.

vbRetry vbRetry vbRetry vbRetry

指示在某个消息框中单击了 Retry 按钮。Indicates that the Retry button was clicked in a message box. MsgBox 函数返回。Returned by the MsgBox function.

vbRetryCancel vbRetryCancel vbRetryCancel vbRetryCancel

指示在调用 Retry 函数时,将显示 CancelMsgBox 按钮。Indicates that the Retry and Cancel buttons will be displayed when the MsgBox function is called.

vbSaturday vbSaturday vbSaturday vbSaturday

指示在调用与日期相关的函数时,应将星期六用作一周的第一天。Specifies that Saturday should be used as the first day of the week when date-related functions are called.

vbSet vbSet vbSet vbSet

指示在调用 CallByName 函数时,应设置一个属性值。Indicates that a property value should be set when the CallByName function is called.

vbShortDate vbShortDate vbShortDate vbShortDate

指示在调用 FormatDateTime 函数时,应使用当前区域性的短日期格式。Indicates that the short-date format for the current culture should be used when the FormatDateTime function is called.

vbShortTime vbShortTime vbShortTime vbShortTime

指示在调用 FormatDateTime 函数时,应使用当前区域性的短时间格式。Indicates that the short-time format for the current culture should be used when the FormatDateTime function is called.

vbSimplifiedChinese vbSimplifiedChinese vbSimplifiedChinese vbSimplifiedChinese

指示在调用 StrConv 函数时,应将字符转换为简体中文字符。Indicates that characters should be converted to Simplified Chinese when the StrConv function is called.

vbSingle vbSingle vbSingle vbSingle

指示变量对象的类型为 SingleIndicates that the type of a variant object is Single. VarType 函数返回。Returned by the VarType function.

vbString vbString vbString vbString

指示变量对象的类型为 StringIndicates that the type of a variant object is String. VarType 函数返回。Returned by the VarType function.

vbSunday vbSunday vbSunday vbSunday

指示在调用与日期相关的函数时,应将星期日用作一周的第一天。Specifies that Sunday should be used as the first day of the week when date-related functions are called.

vbSystem vbSystem vbSystem vbSystem

指示该文件是包含文件访问函数的系统文件。Indicates that the file is a system file for file-access functions.

vbSystemModal vbSystemModal vbSystemModal vbSystemModal

指示在调用 MsgBox 函数时,将消息框显示为模式对话框。Indicates that the message box will be displayed as a modal dialog box when the MsgBox function is called.

vbTab vbTab vbTab vbTab

表示用于打印和显示功能的制表符。Represents a tab character for print and display functions.

vbTextCompare vbTextCompare vbTextCompare vbTextCompare

指示在调用比较函数时,应执行文本比较。Indicates that a text comparison should be performed when comparison functions are called.

vbThursday vbThursday vbThursday vbThursday

指示在调用与日期相关的函数时,应将星期四用作一周的第一天。Specifies that Thursday should be used as the first day of the week when date-related functions are called.

vbTraditionalChinese vbTraditionalChinese vbTraditionalChinese vbTraditionalChinese

指示在调用 StrConv 函数时,应将字符转换为繁体中文字符。Indicates that characters should be converted to Traditional Chinese when the StrConv function is called.

vbTrue vbTrue vbTrue vbTrue

指示在调用数字格式设置函数时应使用 BooleanTrueIndicates that a Boolean value of True should be used when number-formatting functions are called.

vbTuesday vbTuesday vbTuesday vbTuesday

指示在调用与日期相关的函数时,应将星期二用作一周的第一天。Specifies that Tuesday should be used as the first day of the week when date-related functions are called.

vbUpperCase vbUpperCase vbUpperCase vbUpperCase

指示在调用 StrConv 函数时,应将字符转换为大写字符。Indicates that characters should be converted to uppercase when the StrConv function is called.

vbUseDefault vbUseDefault vbUseDefault vbUseDefault

指示在调用数字格式设置函数时,应使用默认 Boolean 值。Indicates that the default Boolean value should be used when number-formatting functions are called.

vbUserDefinedType vbUserDefinedType vbUserDefinedType vbUserDefinedType

指示变量对象的类型为用户定义的类型。Indicates that the type of a variant object is a user-defined type. VarType 函数返回。Returned by the VarType function.

vbUseSystem vbUseSystem vbUseSystem vbUseSystem

指示在调用与日期相关的函数时,应使用系统指定的那一周作为一年中的第一周。Indicates that the week specified by your system as the first week of the year should be used when date-related functions are called.

vbUseSystemDayOfWeek vbUseSystemDayOfWeek vbUseSystemDayOfWeek vbUseSystemDayOfWeek

指示在调用与日期相关的函数时,应使用系统指定的那一天为一周中的第一天。Indicates that the day specified by your system as the first day of the week should be used when date-related functions are called.

vbVariant vbVariant vbVariant vbVariant

指示变量对象的类型为 VariantIndicates that the type of a variant object is Variant. VarType 函数返回。Returned by the VarType function.

vbVerticalTab vbVerticalTab vbVerticalTab vbVerticalTab

表示用于打印功能的回车字符。Represents a carriage-return character for print functions.

vbVolume vbVolume vbVolume vbVolume

指示文件访问函数的卷标文件特性。Indicates the volume label file attribute for file-access functions.

vbWednesday vbWednesday vbWednesday vbWednesday

指示在调用与日期相关的函数时,应将星期三用作一周的第一天。Specifies that Wednesday should be used as the first day of the week when date-related functions are called.

vbWide vbWide vbWide vbWide

指示在调用 StrConv 函数时,应将窄(单字节)字符转换为宽(双字节)字符。Indicates that narrow (single-byte) characters should be converted to wide (double-byte) characters when the StrConv function is called.

vbYes vbYes vbYes vbYes

指示在某个消息框中单击了 Yes 按钮。Indicates that the Yes button was clicked in a message box. MsgBox 函数返回。Returned by the MsgBox function.

vbYesNo vbYesNo vbYesNo vbYesNo

指示在调用 Yes 函数时,将显示 NoMsgBox 按钮。Indicates that the Yes and No buttons will be displayed when the MsgBox function is called.

vbYesNoCancel vbYesNoCancel vbYesNoCancel vbYesNoCancel

指示在调用 Yes 函数时,将显示 NoCancelMsgBox 按钮。Indicates that the Yes, No, and Cancel buttons will be displayed when the MsgBox function is called.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

适用于

另请参阅