Share via


ViewEvent Implicit Conversion (ViewEvent to ViewEventSet)

Casts a single view event as a view 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 ViewEvent _
) As ViewEventSet
'Usage
Dim input As ViewEvent 
Dim output As ViewEventSet 

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

Parameters

Return Value

Type: Microsoft.SqlServer.Management.Smo.ViewEventSet
A ViewEventSet which contains the ViewEvent.

Examples

Handling SMO Events

See Also

Reference

ViewEvent Class

Microsoft.SqlServer.Management.Smo Namespace