ServerVersion.Major 属性

Gets the build number part of the server version information.

命名空间:  Microsoft.SqlServer.Management.Common
程序集:  Microsoft.SqlServer.ConnectionInfo(在 Microsoft.SqlServer.ConnectionInfo.dll 中)

语法

声明
Public ReadOnly Property Major As Integer 
    Get
用法
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

属性值

类型:System.Int32
An Int32 value that specifies the build number part of the server version information.

请参阅

参考

ServerVersion 类

Microsoft.SqlServer.Management.Common 命名空间