다음을 통해 공유


VersionMajor 속성

Gets the portion of a component version identifier to the left of the first decimal point in the identifier.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo

구문

‘선언
<DisplayNameKeyAttribute("Server_VersionMajorName")> _
<DisplayDescriptionKeyAttribute("Server_VersionMajorDesc")> _
ReadOnly Property VersionMajor As Integer
    Get
‘사용 방법
Dim instance As IServerInformation
Dim value As Integer

value = instance.VersionMajor
[DisplayNameKeyAttribute("Server_VersionMajorName")]
[DisplayDescriptionKeyAttribute("Server_VersionMajorDesc")]
int VersionMajor { get; }
[DisplayNameKeyAttribute(L"Server_VersionMajorName")]
[DisplayDescriptionKeyAttribute(L"Server_VersionMajorDesc")]
property int VersionMajor {
    int get ();
}
[<DisplayNameKeyAttribute("Server_VersionMajorName")>]
[<DisplayDescriptionKeyAttribute("Server_VersionMajorDesc")>]
abstract VersionMajor : int
function get VersionMajor () : int

속성 값

형식: System. . :: . .Int32
Int32