Imports
Directives
It often happens that you need to invoke types defined within long-named nested namespaces. To invoke types you need to write the full name of the type, which includes the identifier of the namespace that defines a particular type, as in the following code:
Although IntelliSense has been highly improved from previous versions and it helps in writing code, it can result quite annoyingly in typing long-named namespaces. To help developers in writing code faster, Visual Basic enables the usage of Imports
directives. Such directives enable avoiding the need to write the full namespace identifier preceding the types’ names. The preceding ...
Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.