NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

6.3 Namespaces

Visual Basic 7.0 programs are organized using namespaces. Namespaces are used both as an "internal" organization system for a program, and as an "external" organization system – a way of presenting program elements that are exposed to other programs. Import directives are provided to facilitate the use of namespaces.

Unlike the other kinds of entities, namespaces may be declared multiple times within the same program and may be declared across many programs, with each declaration contributing members to the same namespace. When dealing with the public members of a namespace, it is irrelevant to the language where a particular member was declared. If two programs define an entity with the same name in the same namespace, references to that name from a context where both are available are considered ambiguous and cause an error.

There is a global namespace which has no name and whose nested namespaces and types can always be accessed without qualification. The scope of a namespace member declared in the global namespace is the entire program text of each namespace. Otherwise, the scope of a type or namespace declared in a namespace whose fully qualified name is N is the program text of each namespace whose corresponding namespace's fully qualified name is N or whose fully qualified name begins with N.

NamespaceName ::= QualifiedIdentifier