Share via


SqlAssemblyEventSet.Subtract Method

Returns an SQL assembly event set after subtracting a new SQL assembly event from the specified event set.

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

Syntax

'Declaration
Public Shared Function Subtract ( _
    eventSet As SqlAssemblyEventSet, _
    anEvent As SqlAssemblyEvent _
) As SqlAssemblyEventSet
'Usage
Dim eventSet As SqlAssemblyEventSet 
Dim anEvent As SqlAssemblyEvent 
Dim returnValue As SqlAssemblyEventSet 

returnValue = SqlAssemblyEventSet.Subtract(eventSet, _
    anEvent)
public static SqlAssemblyEventSet Subtract(
    SqlAssemblyEventSet eventSet,
    SqlAssemblyEvent anEvent
)
public:
static SqlAssemblyEventSet^ Subtract(
    SqlAssemblyEventSet^ eventSet, 
    SqlAssemblyEvent^ anEvent
)
static member Subtract : 
        eventSet:SqlAssemblyEventSet * 
        anEvent:SqlAssemblyEvent -> SqlAssemblyEventSet
public static function Subtract(
    eventSet : SqlAssemblyEventSet, 
    anEvent : SqlAssemblyEvent
) : SqlAssemblyEventSet

Parameters

Return Value

Type: Microsoft.SqlServer.Management.Smo.SqlAssemblyEventSet
An SqlAssemblyEventSet object value that specifies the set of SQL assembly events after the event has been subtracted.

Examples

Handling SMO Events

See Also

Reference

SqlAssemblyEventSet Class

Microsoft.SqlServer.Management.Smo Namespace