Partager via


Méthode ExecuteSql.GetServerVersion (Object)

Retrieves the server version for the server with the given connection. Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server.

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

Syntaxe

'Déclaration
Public Shared Function GetServerVersion ( _
    con As Object _
) As ServerVersion
'Utilisation
Dim con As Object 
Dim returnValue As ServerVersion 

returnValue = ExecuteSql.GetServerVersion(con)
public static ServerVersion GetServerVersion(
    Object con
)
public:
static ServerVersion^ GetServerVersion(
    Object^ con
)
static member GetServerVersion : 
        con:Object -> ServerVersion
public static function GetServerVersion(
    con : Object
) : ServerVersion

Paramètres

Valeur de retour

Type : Microsoft.SqlServer.Management.Common.ServerVersion
The server version for the server with the given connection.

Voir aussi

Référence

ExecuteSql Classe

Surcharge GetServerVersion

Espace de noms Microsoft.SqlServer.Management.Sdk.Sfc