The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Version::Build Property
.NET Framework (current version)
Gets the value of the build component of the version number for the current Version object.
Assembly: mscorlib (in mscorlib.dll)
For example, if the version number is 6.2.1.3, the build number is 1. If the version number is 6.2, the build number is undefined.
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 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 */
Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Show: