Version::MinorRevision Property
Gets the low 16 bits of the revision number.
Assembly: mscorlib (in mscorlib.dll)
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 Revision property to obtain the entire revision number, use the MajorRevision property to obtain the high 16 bits, and use the MinorRevision property to obtain the low 16 bits.
The following code example demonstrates the Version constructor, and the Major, Minor, Build, Revision, MajorRevision, and MinorRevision properties.
// This example demonstrates the Version.Revision, // MajorRevision, and MinorRevision properties. using namespace System; int main() { String^ formatStandard = "Standard version:\n" + " major.minor.build.revision = {0}.{1}.{2}.{3}"; String^ formatInterim = "Interim version:\n" + " major.minor.build.majRev/minRev = {0}.{1}.{2}.{3}/{4}"; Version^ standardVersion = gcnew Version(2, 4, 1128, 2); Version^ interimVersion = gcnew Version(2, 4, 1128, (100 << 16) + 2); Console::WriteLine(formatStandard, standardVersion->Major, standardVersion->Minor, standardVersion->Build, standardVersion->Revision); Console::WriteLine(formatInterim, interimVersion->Major, interimVersion->Minor, interimVersion->Build, interimVersion->MajorRevision, interimVersion->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 */
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1