O'Reilly logo

VB.NET Language in a Nutshell, Second Edition by Steven Roman PhD, Paul Lomax, Ron Petrusha

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

Name

Namespace Statement

Syntax

Namespace name
                     component types
End Namespace
name (required; String literal)

The name of the namespace

component types (required)

The elements that are being declared as part of the namespace, including Enums, Structures, Interfaces, Classes, Delegates, Modules, and other namespaces

Description

Declares a namespace and specifies the items in the namespace

Rules at a Glance

  • Namespaces are used in the .NET Framework as an organized method of exposing program components to other programs and applications.

  • Namespaces are always Public. However, the elements within a namespace can be Public, Friend, or Private. Private members are available only within the namespace declaration.

  • name, the namespace name, must be unique.

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