Conversion ServerVersion Explicit (ServerVersion to Version)
Creates a system version object representing the sercer version,
Espace de noms : Microsoft.SqlServer.Management.Common
Assembly : Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)
Syntaxe
'Déclaration
Public Shared Narrowing Operator CType ( _
serverVersion As ServerVersion _
) As Version
'Utilisation
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 prend en charge l'utilisation de conversions personnalisées, mais pas la déclaration de nouvelles conversions.
Paramètres
- serverVersion
Type : Microsoft.SqlServer.Management.Common.ServerVersion
The ServerVersion used to create the Version
Valeur de retour
Type : System.Version
A Version representing the ServerVersion.