O'Reilly logo

VB.NET Language in a Nutshell, Second Edition by Steven Roman PhD, Paul Lomax, Ron Petrusha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

Application.ProductVersion Property

Class

System.Windows.Forms.Application

Syntax

Application.ProductVersion(  )

Return Value

A String containing the product version of the application

Description

Gets the product version of the application.

This is a read-only property. The product version typically has the form:

MajorVersionNumber.MinorVersionNumber.BuildNumber.PrivatePartNumber

Its default value is "1.0.*", which indicates that Visual Studio maintains default build and revision numbers.

The value of the ProductVersion property can be defined by including the <AssemblyVersion> attribute in the application’s AssemblyInfo file. Its syntax is:

<Assembly: AssemblyVersion("maj.min.bld.rev")>

where maj is the major version number, min is the minor version number, bld is the build number, and rev is the revision number.

VB.NET/VB 6 Differences

The ProductVersion property in the .NET Framework corresponds to the App. Major, App.Minor, and App.Revision properties in VB 6.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required