This documentation is archived and is not being maintained.

Version.Minor Property

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

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

Public ReadOnly Property Minor As Integer
Dim instance As Version 
Dim value As Integer 

value = instance.Minor

Property Value

Type: System.Int32
The minor version number.

For example, if the version number is 6.2, the minor version is 2.

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. 

Imports System

Class Sample
    Public Shared Sub Main() 
        Dim fmtStd As String = "Standard version:" & vbCrLf & _
                               " = {0}.{1}.{2}.{3}" 
        Dim fmtInt As String = "Interim version:" & vbCrLf & _
                               " = {0}.{1}.{2}.{3}/{4}" 

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

        Console.WriteLine(fmtStd, std.Major, std.Minor, std.Build, std.Revision)
        Console.WriteLine(fmtInt, interim.Major, interim.Minor, interim.Build, _
                          interim.MajorRevision, interim.MinorRevision)
    End Sub 'Main
End Class 'Sample

'This code example produces the following results: 

'Standard version: 
' = 2.4.1128.2 
'Interim version: 
' = 2.4.1128.100/2 

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0

XNA Framework

Supported in: 3.0, 2.0, 1.0