ServerVersion Explicit Conversion (ServerVersion to Version)
Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)
Syntax
'Declaration
Public Shared Narrowing Operator CType ( _
serverVersion As ServerVersion _
) As Version
'Usage
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 supports the use of custom casts, but not the declaration of new ones.
Parameters
- serverVersion
Type: Microsoft.SqlServer.Management.Common.ServerVersion
Return Value
Type: System.Version