Gets the value of the major component of the version number for the current Version object.
A int specifying the major component.
C# Example
using System; class VersionMajorExample { public static void Main() { Version vers = new Version("6.1.2.4"); Console.Write("The major component "); Console.WriteLine("of version vers = {0}.", vers.Major); } }
The output is
The major component of version vers = 6.