Mono Class Library: System.Version Overview | Members

System.Version.Revision Property

Gets the value of the revision component of the current instance. [Edit]

public int Revision { get; }

Value

A int specifying the revision component, or -1 if the revision component is undefined. [Edit]

Remarks

This property is read-only.

If the version number is 6.1.2.4, the revision component is 4. If the version number is 6.1, the revision component is considered to be undefined.

[Edit]

Example

C# Example
using System;
class VersionRevisionExample {
   public static void Main() {
      Version vers = new Version("6.1.2.4");
      Console.Write("The revision component of ");
      Console.WriteLine("version vers = {0}.",
                        vers.Revision);
   }
}
   

The output is

The revision component of version vers = 4.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0