O'Reilly logo

Visual Basic 2010 Unleashed by Alessandro Del Sole

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

image

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required