Namespace Statement

   
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.

   


VB.Net Language in a Nutshell
VB.NET Language in a Nutshell
ISBN: B00006L54Q
EAN: N/A
Year: 2002
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net