Explicit 转换 (ServerVersion to 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 支持使用自定义转换,但不支持声明新自定义转换。

返回值

类型:System. . :: . .Version