Del via


ServerTraceEvent Implicit Conversion (ServerTraceEvent to ServerTraceEventSet)

Converts a single server trace event to a server trace event set.

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.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.