Share via


ServerVersion Constructor (Int32, Int32, Int32)

Initializes a new instance of the ServerVersion class.

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Syntax

'Declaration
Public Sub New ( _
    major As Integer, _
    minor As Integer, _
    buildNumber As Integer _
)
'Usage
Dim major As Integer 
Dim minor As Integer 
Dim buildNumber As Integer 

Dim instance As New ServerVersion(major, minor, _
    buildNumber)
public ServerVersion(
    int major,
    int minor,
    int buildNumber
)
public:
ServerVersion(
    int major, 
    int minor, 
    int buildNumber
)
new : 
        major:int * 
        minor:int * 
        buildNumber:int -> ServerVersion
public function ServerVersion(
    major : int, 
    minor : int, 
    buildNumber : int
)

Parameters

  • major
    Type: System.Int32
    An Int32 value that specifies the major part of the server version number.
  • minor
    Type: System.Int32
    An Int32 value that specifies the minor part of the server version number.
  • buildNumber
    Type: System.Int32
    An Int32 value that specifies the build number part of the server version number.

See Also

Reference

ServerVersion Class

ServerVersion Overload

Microsoft.SqlServer.Management.Common Namespace