共用方式為


VersionMajor 屬性

Gets the major version number of the instance of SQL Server.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Expensive)> _
Public ReadOnly Property VersionMajor As Integer
    Get
'用途
Dim instance As Information
Dim value As Integer

value = instance.VersionMajor
[SfcPropertyAttribute(SfcPropertyFlags.Expensive)]
public int VersionMajor { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Expensive)]
public:
property int VersionMajor {
    int get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Expensive)>]
member VersionMajor : int
function get VersionMajor () : int

屬性值

型別:System. . :: . .Int32
An Int32 object that specifies the major version number of the instance of SQL Server.