Partager via


Propriété IServerInformation.VersionMajor

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

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<DisplayNameKeyAttribute("Server_VersionMajorName")> _
<DisplayDescriptionKeyAttribute("Server_VersionMajorDesc")> _
ReadOnly Property VersionMajor As Integer 
    Get
'Utilisation
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

Valeur de propriété

Type : System.Int32
The portion of a component version identifier to the left of the first decimal point in the identifier.

Voir aussi

Référence

IServerInformation Interface

Espace de noms Microsoft.SqlServer.Management.Smo