Méthode ScriptingOptions.ConvertVersion
Converts the server version to a SqlServerVersion value.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Shared Function ConvertVersion ( _
version As Version _
) As SqlServerVersion
'Utilisation
Dim version As Version
Dim returnValue As SqlServerVersion
returnValue = ScriptingOptions.ConvertVersion(version)
public static SqlServerVersion ConvertVersion(
Version version
)
public:
static SqlServerVersion ConvertVersion(
Version^ version
)
static member ConvertVersion :
version:Version -> SqlServerVersion
public static function ConvertVersion(
version : Version
) : SqlServerVersion
Paramètres
- version
Type : System.Version
The version of the server.
Valeur de retour
Type : Microsoft.SqlServer.Management.Smo.SqlServerVersion
A SqlServerVersion value specifying the version of the server.