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.
Parameters
- eventValue
Type: Microsoft.SqlServer.Management.Smo.ServerTraceEvent
The specified value of the server trace event.
Return Value
Type: Microsoft.SqlServer.Management.Smo.ServerTraceEventSet
The converted server trace event set.
Remarks
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.