Share via


ServerVersion.Major Property

Gets the build number part of the server version information.

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

Syntax

'Declaration
Public ReadOnly Property Major As Integer 
    Get
'Usage
Dim instance As ServerVersion 
Dim value As Integer 

value = instance.Major
public int Major { get; }
public:
property int Major {
    int get ();
}
member Major : int
function get Major () : int

Property Value

Type: Int32
An Int32 value that specifies the build number part of the server version information.

See Also

Reference

ServerVersion Class

Microsoft.SqlServer.Management.Common Namespace