Visual Basic 运行时库成员

更新:2007 年 11 月

Microsoft.VisualBasic 命名空间包含构成 Visual Basic 运行时库的类、模块、常数和枚举。这些库成员提供可在代码中使用的过程、属性和常数值。每个模块和类都表示一个特定的功能类别。

Microsoft.VisualBasic.Collection 类

Add

Clear

Contains

Count

GetEnumerator

Item

Remove

 

Microsoft.VisualBasic.ComClassAttribute 类

ClassID

EventID

InterfaceID

InterfaceShadows

Microsoft.VisualBasic.ControlChars 类

Back

Cr

CrLf

FormFeed

Lf

NewLine

NullChar

Quote

Tab

VerticalTab

 

 

Microsoft.VisualBasic.Constants 类

vbAbort

vbAbortRetryIgnore

vbApplicationModal

vbArchive

vbArray

vbBack

vbBinaryCompare

vbBoolean

vbByte

vbCancel

vbCr

vbCritical

vbCrLf

vbCurrency

vbDate

vbDecimal

vbDefaultButton1

vbDefaultButton2

vbDefaultButton3

vbDirectory

vbDouble

vbEmpty

vbExclamation

vbFalse

vbFirstFourDays

vbFirstFullWeek

vbFirstJan1

vbFormFeed

vbFriday

vbGeneralDate

vbGet

vbHidden

vbHide

vbHiragana

vbIgnore

vbInformation

vbInteger

vbKatakana

vbLet

vbLf

vbLinguisticCasing

vbLong

vbLongDate

vbLongTime

vbLowerCase

vbMaximizedFocus

vbMethod

vbMinimizedFocus

vbMinimizedNoFocus

vbMonday

vbMsgBoxHelp

vbMsgBoxRight

vbMsgBoxRtlReading

vbMsgBoxSetForeground

vbNarrow

vbNewLine

vbNo

vbNormal

vbNormalFocus

vbNormalNoFocus

vbNull

vbNullChar

vbNullString

vbObject

vbObjectError

vbOK

vbOKCancel

vbOKOnly

vbProperCase

vbQuestion

vbReadOnly

vbRetry

vbRetryCancel

vbSaturday

vbSet

vbShortDate

vbShortTime

vbSimplifiedChinese

vbSingle

vbString

vbSunday

vbSystem

vbSystemModal

vbTab

vbTextCompare

vbThursday

vbTraditionalChinese

vbTrue

vbTuesday

vbUpperCase

vbUseDefault

vbUserDefinedType

vbUseSystem

vbUseSystemDayOfWeek

vbVariant

vbVerticalTab

vbVolume

vbWednesday

vbWide

vbYes

vbYesNo

vbYesNoCancel

 

 

Microsoft.VisualBasic.Conversion 模块

ErrorToString

Fix

Hex

Int

Oct

Str

Val

 

Microsoft.VisualBasic.DateAndTime 模块

DateAdd

DateDiff

DatePart

DateSerial

DateString

DateValue

Day

Hour

Minute

Month

MonthName

Now

Second

TimeOfDay

Timer

TimeSerial

TimeString

TimeValue

Today

WeekDay

WeekDayName

Year

 

 

Microsoft.VisualBasic.ErrObject 类

Clear

Description

Erl

GetException

HelpContext

HelpFile

LastDLLError

Number

Raise

Source

 

 

Microsoft.VisualBasic.FileSystem 模块

ChDir

ChDrive

CurDir

Dir

EOF

FileAttr

FileClose

FileCopy

FileDateTime

FileGet

FileGetObject

FileLen

FileOpen

FilePut

FilePutObject

FileWidth

FreeFile

GetAttr

Input

InputString

Kill

LineInput

Loc

Lock

LOF

MkDir

Print

PrintLine

Rename

Reset

RmDir

Seek

SetAttr

SPC

Tab

Unlock

Write

WriteLine

 

 

Microsoft.VisualBasic.Financial 模块

DDB

FV

IPmt

IRR

MIRR

NPer

NPV

Pmt

PPmt

PV

Rate

SLN

SYD

 

 

 

Microsoft.VisualBasic.Globals 模块

ScriptEngine

ScriptEngineBuildVersion

ScriptEngineMajorVersion

ScriptEngineMinorVersion

Microsoft.VisualBasic.HideModuleNameAttribute 类

HideModuleNameAttribute

 

 

 

Microsoft.VisualBasic.Information 模块

Erl

Err

IsArray

IsDate

IsDBNull

IsError

IsNothing

IsNumeric

IsReference

LBound

QBColor

RGB

SystemTypeName

TypeName

UBound

VarType

VbTypeName

 

 

 

Microsoft.VisualBasic.Interaction 模块

AppActivate

Beep

CallByName

Choose

Command

CreateObject

DeleteSetting

Environ

GetAllSettings

GetObject

GetSetting

IIf

InputBox

MsgBox

Partition

SaveSetting

Shell

Switch

 

 

Microsoft.VisualBasic.MyGroupCollectionAttribute 类

CreateMethod

DefaultInstanceAlias

DisposeMethod

MyGroupName

Microsoft.VisualBasic.Strings 模块

Asc

AscW

Chr

ChrW

Filter

Format

FormatCurrency

FormatDateTime

FormatNumber

FormatPercent

GetChar

InStr

InStrRev

Join

LCase

Left

Len

LSet

LTrim

Mid

Replace

Right

RSet

RTrim

Space

Split

StrComp

StrConv

StrDup

StrReverse

Trim

UCase

Microsoft.VisualBasic.VBFixedArrayAttribute 类

Bounds

Length

 

 

Microsoft.VisualBasic.VBFixedStringAttribute 类

Length

 

 

 

Microsoft.VisualBasic.VbMath 模块

Randomize

Rnd

 

 

Microsoft.VisualBasic 常数和枚举

Microsoft.VisualBasic 命名空间提供常数和枚举作为 Visual Basic 运行时库的一部分。您可以在代码中使用这些常数值。每个枚举都表示一个特定的功能类别。有关更多信息,请参见 常数和枚举 (Visual Basic)

请参见

参考

Visual Basic 语言关键字

按照任务排列的关键字和成员

其他资源

Visual Studio 中的 Visual Basic 运行库命名空间

常数和枚举 (Visual Basic)