Compartilhar via


Método DatabaseEventSet.Subtract

Returns a set of database events after removing a database event from the specified event set.

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

Sintaxe

'Declaração
Public Shared Function Subtract ( _
    eventSet As DatabaseEventSet, _
    anEvent As DatabaseEvent _
) As DatabaseEventSet
'Uso
Dim eventSet As DatabaseEventSet 
Dim anEvent As DatabaseEvent 
Dim returnValue As DatabaseEventSet 

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

Parâmetros

Valor de retorno

Tipo: Microsoft.SqlServer.Management.Smo.DatabaseEventSet
A DatabaseEventSet object that specifies the database event set after removing the database event.

Exemplos

Manipulando eventos SMO

Consulte também

Referência

DatabaseEventSet Classe

Namespace Microsoft.SqlServer.Management.Smo