Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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:

  • 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.

Related Sections

Visual Basic Run-Time Library Members

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

Development with My

Discusses a new feature called 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 on 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 .NET 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.

See Also

Community Additions

© 2015 Microsoft