NamespaceCollection.AutoImportVBNamespace Property
.NET Framework (current version)
Gets or sets a value that determines whether the Visual Basic namespace is imported without having to specify it.
Assembly: System.Web (in System.Web.dll)
[<ConfigurationPropertyAttribute("autoImportVBNamespace", DefaultValue = true)>] member AutoImportVBNamespace : bool with get, set
Property Value
Type: System.Booleantrue if the Visual Basic namespace is imported automatically; otherwise, false. The default is true.
For ASP.NET pages written using Visual Basic the Microsoft.VisualBasic namespace is automatically imported unless the AutoImportVBNamespace property is false.
The following code example shows how to use the AutoImportVBNamespace property. This code example is part of a larger example provided for the PagesSection class.
.NET Framework
Available since 2.0
Available since 2.0
Show: