Visual Basic Runtime Namespace in Visual Studio
The document is archived and information here might be outdated

Visual Basic Runtime Namespace in Visual Studio

The Microsoft.VisualBasic namespace contains modules, enumerations, and attributes that provide the properties, functions, and constants you can use in Visual Basic .NET applications. Examples of functions in this namespace include the following:

  • Microsoft.Visual Basic.Interaction.MsgBox

  • Microsoft.Visual Basic.Interaction.Shell

  • Microsoft.Visual Basic.Strings.Mid

  • Microsoft.Visual Basic.Collection.Count

Examples of properties and constants include Microsoft.Visual Basic.DateAndTime.TimeOfDay and vbCrLf.

Examples of attributes include VBFixedStringAttribute, VBFixedArrayAttribute, and ComClassAttribute.

This namespace also contains namespaces that provide types to support My objects, such as Microsoft.VisualBasic.Devices, which provides types to support objects such as My.Computer Object.

Visual Basic Run-Time Library Members

Provides a complete reference for the Visual Basic run-time elements.

Development with My

Discusses a new feature named My, which provides access to information and default object instances that are related to an application and its run-time environment.


Describes how namespaces organize objects within assemblies.

Programming Element Support Changes Summary

Provides information about programming elements that are replaced by methods in the .NET Framework class library.

References and the Imports Statement

Discusses how to reference and use objects in assemblies.


Discusses how .NET attributes provide additional information about entities defined inside a Visual Basic application.

.NET Framework Class Library in Visual Studio

Provides an overview of the namespaces in the .NET Framework.

Introduction to the .NET Framework Class Library in Visual Studio

Explains namespaces and assemblies.

© 2016 Microsoft