Share via


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

Return Value

Type: System.Version
A Version representing the ServerVersion.

See Also

Reference

ServerVersion Class

Microsoft.SqlServer.Management.Common Namespace