Version.Revision Property
.NET Framework 4.5
Gets the value of the revision component of the version number for the current Version object.
Assembly: mscorlib (in mscorlib.dll)
The following code example demonstrates the Version constructor, and Major, Minor, Build, Revision, MajorRevision, and MinorRevision properties.
// This example demonstrates the Version.Revision, // MajorRevision, and MinorRevision properties. using System; class Sample { public static void Main() { string fmtStd = "Standard version:\n" + " major.minor.build.revision = {0}.{1}.{2}.{3}"; string fmtInt = "Interim version:\n" + " major.minor.build.majRev/minRev = {0}.{1}.{2}.{3}/{4}"; Version std = new Version(2, 4, 1128, 2); Version interim = new Version(2, 4, 1128, (100 << 16) + 2); Console.WriteLine(fmtStd, std.Major, std.Minor, std.Build, std.Revision); Console.WriteLine(fmtInt, interim.Major, interim.Minor, interim.Build, interim.MajorRevision, interim.MinorRevision); } } /* This code example produces the following results: Standard version: major.minor.build.revision = 2.4.1128.2 Interim version: major.minor.build.majRev/minRev = 2.4.1128.100/2 */
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.