System.Version.MajorRevision Property

Gets the high 16 bits of the revision number.

Syntax

public short MajorRevision { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Suppose you release an interim version of your application to temporarily correct a problem until you can release a permanent solution. The temporary version does not warrant a new revision number, but it does need to be identified as a different version. In this case, encode the identification information in the high and low 16-bit portions of the 32-bit revision number. Use the Version.Revision property to obtain the entire revision number, use the Version.MajorRevision property to obtain the high 16 bits, and use the Version.MinorRevision property to obtain the low 16 bits.

Starting in the .NET Framework version 2.0, the Windows NT operating system uses the Version.MajorRevision property to encode the service pack number.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0