Partager via


Implicit conversion (SqlAssemblyEvent to SqlAssemblyEventSet)

Casts a single SqlAssemblyEvent as an SqlAssemblyEventSet.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Shared Widening Operator CType ( _
    eventValue As SqlAssemblyEvent _
) As SqlAssemblyEventSet
'Utilisation
Dim input As SqlAssemblyEvent
Dim output As SqlAssemblyEventSet

output = CType(input, SqlAssemblyEventSet)
public static implicit operator SqlAssemblyEventSet (
    SqlAssemblyEvent eventValue
)
static implicit operator SqlAssemblyEventSet^ (
    SqlAssemblyEvent^ eventValue
)
JScript prend en charge l'utilisation de conversions personnalisées, mais pas la déclaration de nouvelles conversions.