Share via


ServerTraceEvent Implicit Conversion (ServerTraceEvent to ServerTraceEventSet)

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

Syntax

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

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