Mono Class Library: System.Version Overview | MembersSystem.Version.Build Property |
Gets the value of the build component of the current instance. [Edit]
|
A int specifying the build component, or -1 if the build component is undefined. [Edit]
This property is read-only.
Note: If the version number is 6.1.2.4, the build component is 2. If the version number is 6.1, the build component is -1, which is considered to be undefined.[Edit]
C# Example using System; class VersionBuildExample { public static void Main() { Version vers = new Version("6.1.2.4"); Console.Write("The build component of "); Console.WriteLine("version vers = {0}.", vers.Build); } }The output is
The build component of version vers = 2.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0