Generated by GPT-5-mini| VB.NET | |
|---|---|
| Name | Visual Basic .NET |
| Paradigm | Object-oriented, event-driven |
| Designer | Microsoft |
| Developer | Microsoft |
| First appeared | 2002 |
| Typing | Static, strong |
| Influenced by | BASIC, Visual Basic (classic), C# |
| Influenced | F#, PowerShell |
| Platform | Microsoft Windows, Common Language Runtime |
VB.NET is a high-level, object-oriented programming language developed by Microsoft for the Common Language Infrastructure and designed to interoperate with other Microsoft languages on the .NET Framework. It evolved from earlier implementations of BASIC and Visual Basic (classic), bringing modern language constructs, type safety, and integration with the Common Language Runtime used by C# and other languages. VB.NET is commonly used for building desktop applications on Microsoft Windows, web services compatible with Internet Information Services, and interoperable libraries for Visual Studio ecosystems.
VB.NET provides a syntax and runtime designed to support rapid application development within the .NET Framework and later .NET Core/.NET implementations. The language emphasizes event-driven programming aligned with Windows Forms, Windows Presentation Foundation, and ASP.NET frameworks. Tooling and libraries for VB.NET are frequently associated with Visual Studio, MSDN documentation, and enterprise development environments used by organizations such as Microsoft and partners within the Microsoft Partner Network.
VB.NET originated as a successor to Visual Basic (classic) when Microsoft introduced the .NET Framework in the early 2000s alongside languages like C# and Managed C++. Major milestones include the release tied to .NET Framework 1.0, subsequent updates with .NET Framework 2.0 adding generics and language enhancements, and alignment with the Roslyn compiler platform in later releases. The language evolved in step with Visual Studio editions, including changes introduced during Visual Studio 2005, Visual Studio 2010, and the open-source movement leading to .NET Core and unified .NET releases under .NET 5 and later.
VB.NET supports object-oriented constructs such as classes, interfaces, inheritance, and polymorphism compatible with Common Language Specification standards. Language additions over time include generics, delegates, events, lambda expressions, and asynchronous programming patterns via the async/await model influenced by research and implementations in Microsoft Research and language teams. VB.NET integrates with declarative attributes used across Windows Communication Foundation and Entity Framework for metadata and data modeling. Interoperability features allow calls to COM components, interoperability with Win32 APIs, and language interoperability with C# assemblies and F# libraries.
Programs written in VB.NET compile to Intermediate Language executed by the Common Language Runtime, granting features such as garbage collection, just-in-time compilation, and security mechanisms tied to Code Access Security. VB.NET applications target CLR versions provided by different .NET Framework releases and the cross-platform .NET Core runtime. Integration with frameworks such as ASP.NET, Windows Communication Foundation, Windows Presentation Foundation, and ADO.NET enables VB.NET to participate in web services, desktop UI, distributed systems, and data access scenarios used by enterprises and public sector projects.
The principal integrated development environment for VB.NET is Visual Studio, with editions like Visual Studio Community, Visual Studio Professional, and Visual Studio Enterprise offering designers, debuggers, and profiling tools. Alternative editors and build tools include MSBuild, integration with Azure DevOps, and extensions from the Visual Studio Gallery. Historically, tools such as Visual Studio 2005, Visual Studio 2008, and Visual Studio 2010 introduced major language service improvements; the Roslyn project further modernized compilers and analyzers used by developers publishing code to repositories on platforms like GitHub.
VB.NET has been widely adopted in enterprise settings where legacy Visual Basic (classic) codebases required migration to managed environments supported by Microsoft platforms. Industries employing VB.NET include financial services and healthcare organizations using Microsoft SQL Server and Windows Server infrastructures. The language remains in use for internal line-of-business applications, automation tasks integrated with Office through Visual Studio Tools for Office, and educational contexts that transitioned from traditional BASIC curricula to managed languages.
Example demonstrating a simple class, method, and asynchronous call in VB.NET syntax used in Visual Studio projects:
Public Class Calculator Public Function Add(x As Integer, y As Integer) As Integer Return x + y End Function
Public Async Function ComputeAsync(x As Integer, y As Integer) As Task(Of Integer) Await Task.Delay(100) Return Add(x, y) End Function End Class
Usage patterns for VB.NET often mirror those in C# projects when consuming libraries from NuGet packages or interoperating with services hosted on IIS. The language surface and tooling continue to be maintained by Microsoft and reflected in updates to the .NET SDK and associated developer platforms.
Category:Programming languages Category:Microsoft development tools