ServerVersion Explicit Conversion (ServerVersion to Version)
Creates a system version object representing the sercer 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
The ServerVersion used to create the Version
Return Value
Type: Version
A Version representing the ServerVersion.