Export (0) Print
Expand All

2.3 Keywords

Visual Studio .NET 2003

A keyword is a word that has special meaning in a language construct. All keywords are reserved by the language and may not be used as identifiers unless the identifiers are escaped.

Note   EndIf, GoSub, Let, Variant, and Wend are retained as keywords, although they are no longer used in Visual Basic .NET.
Keyword ::= < member of keyword table >
AddHandler AddressOf Alias And
AndAlso Ansi As Assembly
Auto Boolean ByRef Byte
ByVal Call Case Catch
CBool CByte CChar CDate
CDbl CDec Char CInt
Class CLng CObj Const
CShort CSng CStr CType
Date Decimal Declare Default
Delegate Dim DirectCast Do
Double Each Else ElseIf
End EndIf Enum Erase
Error Event Exit False
Finally For Friend Function
Get GetType GoSub GoTo
Handles If Implements Imports
In Inherits Integer Interface
Is Let Lib Like
Long Loop Me Mod
Module MustInherit MustOverride MyBase
MyClass Namespace New Next
Not Nothing NotInheritable NotOverridable
Object On Option Optional
Or OrElse Overloads Overridable
Overrides ParamArray Preserve Private
Property Protected Public RaiseEvent
ReadOnly ReDim REM RemoveHandler
Resume Return Select Set
Shadows Shared Short Single
Static Step Stop String
Structure Sub SyncLock Then
Throw To True Try
TypeOf Unicode Until Variant
Wend When While With
WithEvents WriteOnly Xor  

See Also

2.1 Characters and Lines | 2.2 Identifiers | 2.4 Literals | 2.5 Separators | 2.6 Operator Characters | 2. Lexical Grammar | Visual Basic Language Keywords (Visual Basic Language Reference)

© 2014 Microsoft