Share via


Version.Major Property

Gets the value of the major component of the version number for the current Version object.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

public int Major { get; }

Property Value

The major version number.

Remarks

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

Version Information

Available in the .NET Micro Framework versions 3.0, 3.5, 4.0, and 4.1.

See Also

Reference

Version Class
Version Members
System Namespace