Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
NamespaceInfo Class [IIS 7 and higher]
Collapse the table of content
Expand the table of content

NamespaceInfo Class [IIS 7 and higher]

IIS 7.0

Contains namespace references similar to the Import directive.

class NamespaceInfo : EmbeddedObject

This class contains no methods.

The following table lists the properties exposed by the NamespaceInfo class.

Name

Description

AutoImportVBNamespace

A read/write boolean value. true if the Microsoft.VisualBasic namespace is imported automatically; otherwise, false. The default is true.

NoteNote:
For ASP.NET pages written by using Visual Basic, the VisualBasic namespace is imported automatically unless the AutoImportVBNamespace property is set to false.

Namespaces

An array of NamespaceElement values that specify namespace references.

NoteNote:
No validation is performed to verify that the namespace references are valid.

This class contains no subclasses.

Instances of this class are contained in the Namespaces property of the PagesSection class.

Each NamespaceInfo object is the same as an Import (<%@ Import %>) directive that applies to all pages and controls in the scope of the configuration file. The Import directive enables you to import a namespace into your ASP.NET page, which makes all its classes available for use on your page.

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

Community Additions

ADD
Show:
© 2015 Microsoft