VB .NET Supported Preprocessing Directives

The following directives are supported during preprocessing:

Directive

Description

#Const

Defines a symbol

#If

Evaluates a condition, if the condition is true, the statement following the condition is kept otherwise it is ignored

#Else

If the previous #If test fails, source code following the #Else directive will be included

#Else If

Used with the #if directive, if the previous #If test fails, #Else If includes or exclude source code, depending on the resulting value of its own expression or identifier

#End If

Closes the #If conditional block of code

Note: #Region, #End Region, and #ExternalSource directives are removed from source code.


Created October 7, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com