DatabaseEvent Implicit Conversion (DatabaseEvent to DatabaseEventSet)

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Shared Widening Operator CType ( _
    eventValue As DatabaseEvent _
) As DatabaseEventSet
'Usage
Dim input As DatabaseEvent
Dim output As DatabaseEventSet

output = CType(input, DatabaseEventSet)
public static implicit operator DatabaseEventSet (
    DatabaseEvent eventValue
)
static implicit operator DatabaseEventSet^ (
    DatabaseEvent^ eventValue
)
JScript supports the use of custom casts, but not the declaration of new ones.