Visual Basic Language Reference  

#ExternalSource Directive

Indicates a mapping between source lines and text external to the source, such as an .aspx file.

# ExternalSource( StringLiteral , IntLiteral )
   [ LogicalLine+ ]
# End ExternalSource

Parts

StringLiteral
The path to the external source.
IntLiteral
The line number of the first line of the external source.
Logical Line
The line where the error occurs in the external source.
# End ExternalSource
Terminates the #ExternalSource block.

Remarks

A source file may include external source directives that indicate a mapping between source lines and text external to the source, so if errors are encountered during compilation, they are identified as coming from the external source. External source directives have no effect on compilation and may not be nested. They are intended for internal use by the application only.

See Also

Conditional Compilation