Delen via


ScriptingOptions.ConvertVersion Method

Converts the server version to a SqlServerVersion value.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Shared Function ConvertVersion ( _
    version As Version _
) As SqlServerVersion
'Usage
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

Parameters

Return Value

Type: Microsoft.SqlServer.Management.Smo.SqlServerVersion
A SqlServerVersion value specifying the version of the server.

See Also

Reference

ScriptingOptions Class

Microsoft.SqlServer.Management.Smo Namespace