共用方式為


ConvertVersion 方法

Converts the server version to a SqlServerVersion value.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Shared Function ConvertVersion ( _
    version As Version _
) As SqlServerVersion
'用途
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

參數

傳回值

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