This documentation is archived and is not being maintained.

Version.Major Property

Gets the value of the major component of the version number for this instance.

[Visual Basic]
Public ReadOnly Property Major As Integer
public int Major {get;}
public: __property int get_Major();
public function get Major() : int;

Property Value

The major version number.


For example, if the version number is 6.2, the major version is 6.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Version Class | Version Members | System Namespace