Share via


Major Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

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

Syntax

'Declaration
Public ReadOnly Property Major As Integer
public int Major { get; }
public:
property int Major {
    int get ();
}
member Major : int with get
function get Major () : int

Property Value

Type: System. . :: . .Int32
The major version number.

Remarks

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

.NET Framework Security

See Also

Reference

Version Class

System Namespace