共用方式為


VersionMajor 屬性

Gets the VersionMajor property value.

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

語法

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

value = instance.VersionMajor
[SfcPropertyAttribute(SfcPropertyFlags.Expensive)]
public int VersionMajor { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Expensive)]
public:
virtual property int VersionMajor {
    int get () sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.Expensive)>]
abstract VersionMajor : int
[<SfcPropertyAttribute(SfcPropertyFlags.Expensive)>]
override VersionMajor : int
final function get VersionMajor () : int

屬性值

型別:System. . :: . .Int32
Int32

實作

IServerInformation. . :: . .VersionMajor