Build Property
Collapse the table of content
Expand the table of content

Version.Build Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the value of the build component of the version number for the current Version object.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public ReadOnly Property Build As Integer

Property Value

Type: System.Int32
The build number, or -1 if the build number is undefined.

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 example demonstrates the Version constructor and the Major, Minor, Build, and Revision properties.


' This example demonstrates the Version.Revision property.


Class Example
   Public Shared Sub Demo(ByVal outputBlock As System.Windows.Controls.TextBlock)
      Dim fmtStd As String = "Standard version:" & vbCrLf & _
                             "  major.minor.build.revision = {0}.{1}.{2}.{3}"
      Dim fmtInt As String = "Interim version:" & vbCrLf & _
                             "  major.minor.build.revision = {0}.{1}.{2}.{3}"

      Dim std As New Version(2, 4, 1128, 2)
      Dim interim As New Version(2, 4, 1128, (100 << 16) + 2)

      outputBlock.Text &= String.Format(fmtStd, std.Major, std.Minor, std.Build, std.Revision) & vbCrLf
      outputBlock.Text &= String.Format(fmtInt, interim.Major, interim.Minor, interim.Build, _
                        interim.Revision) & vbCrLf
   End Sub
End Class 

'
'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
'


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft