In This Article

INamespaceDeclaration Interface

Provides the base requirements of a namespace declaration that encloses types declared in a source file.

public interface INamespaceDeclaration

Properties

AliasedUsingDirectives

Gets the collection of aliased using directives within the namespace declaration.

IList<IAliasedUsingDirective> AliasedUsingDirectives { get; }

Property Value

IList<IAliasedUsingDirective>:

The collection of aliased using directives within the namespace declaration.

ExternalAliasDirectives

Gets the collection of external alias directives within the namespace declaration.

IList<IExternalAliasDirective> ExternalAliasDirectives { get; }

Property Value

IList<IExternalAliasDirective>:

The collection of external alias directives within the namespace declaration.

FullName

Gets the full name of the namespace, which includes the names of ancestor namespaces.

string FullName { get; }

Property Value

String:

The full name of the namespace, which includes the names of ancestor namespaces.

Name

Gets the name of the namespace.

string Name { get; }

Property Value

String:

The name of the namespace.

Parent

Gets the INamespaceDeclaration that contains this namespace declaration.

INamespaceDeclaration Parent { get; }

Property Value

INamespaceDeclaration:

The INamespaceDeclaration that contains this namespace declaration.

UsingDirectives

Gets the collection of using directives within the namespace declaration.

IList<IUsingDirective> UsingDirectives { get; }

Property Value

IList<IUsingDirective>:

The collection of using directives within the namespace declaration.