Share via


ServerEvent Implicit Conversion (ServerEvent to ServerEventSet)

Creates a server event set by performing an implicit operation on a ServerEvent object.

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

Syntax

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

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

Parameters

Return Value

Type: Microsoft.SqlServer.Management.Smo.ServerEventSet
A ServerEventSet object value that specifies a set of server events.