Constructs and initializes a new instance of the Version class using the specified major and minor values.
Type Reason ArgumentOutOfRangeException major or minor is less than zero.
Documentation for this section has not yet been entered.
The following example sets the version to "6.1" and writes the result to the console.
C# Example
using System; public class Vers { public static void Main() { Version vers = new Version( 6, 1 ); Console.WriteLine( "Version is {0}", vers.ToString() ); } }The output is
Version is 6.1
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0