ServerVersion Explicit 转换 (ServerVersion to Version)
Creates a system version object representing the sercer version,
命名空间: Microsoft.SqlServer.Management.Common
程序集: Microsoft.SqlServer.ConnectionInfo(在 Microsoft.SqlServer.ConnectionInfo.dll 中)
语法
声明
Public Shared Narrowing Operator CType ( _
serverVersion As ServerVersion _
) As Version
用法
Dim input As ServerVersion
Dim output As Version
output = CType(input, Version)
public static explicit operator Version (
ServerVersion serverVersion
)
static explicit operator Version^ (
ServerVersion^ serverVersion
)
JScript 支持使用自定义转换,但不支持声明新自定义转换。
参数
- serverVersion
类型:Microsoft.SqlServer.Management.Common.ServerVersion
The ServerVersion used to create the Version
返回值
类型:System.Version
A Version representing the ServerVersion.