ScriptingOptions.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
参数
- version
类型:System.Version
The version of the server.
返回值
类型:Microsoft.SqlServer.Management.Smo.SqlServerVersion
A SqlServerVersion value specifying the version of the server.