Поделиться через


Свойство 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