OSVersion Property


OSVersion Property

Location

My.Computer.Info.OSVersion

Syntax

     Dim result As String = My.Computer.Info.OSVersion 

Description

The OSVersion property returns the version of the operating system, a set of four numbers in the format "major.minor.build.revision."

Usage at a Glance

  • This property is read-only.

  • An exception is thrown if the user does not have sufficient security privileges to access system information.

Example

The text returned by this property varies by operating system and installed features. For instance, the text returned for a sample Windows XP Professional system with Service Pack 2 and several hot fixes installed was "5.1.2600.131072."

Related Framework Entries

  • Microsoft.VisualBasic.Devices.ComputerInfo.OSFullName Property

  • System.Environment.OSVersion Property

  • System.OperatingSystem.Version Property

See Also

Info Object (My.Computer), OSFullName Property, OSPlatform 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