Application.ProductVersion Property


Application.ProductVersion Property

Class

System.Windows.Forms.Application

Syntax

     Dim result As String = Application.ProductVersion  

Description

The ProductVersion property gets the product version information for the application as recorded in the assembly. It is set using the <AssemblyVersion> attribute of the assembly, which normally appears in the AssemblyInfo.vb file. Its syntax is:

     <Assembly: AssemblyVersion("major.minor.build.revision")> 

where major, minor, build, and revision are the numeric parts of the version number. This is a read-only property.

The version number is normally a set of four numbers that represent the major, minor, build, and revision components of the version number. The default value is "1.0.*," which indicates that Visual Studio maintains default build and revision numbers.

Version Differences

  • This property corresponds to the App.Major, App.Minor, and App.Revision properties in VB 6.

  • Visual Basic 2005 includes the My.Application.Info.Version property, which provides similar functionality.

See Also

Application Class, Application.CompanyName Property, Application.ProductName Property




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net