DatabaseEventSet.Subtraction Operator
Creates a database event set by performing a subtraction operation on a DatabaseEvent object and a DatabaseEventSet object.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Shared Operator - ( _
eventSet As DatabaseEventSet, _
anEvent As DatabaseEvent _
) As DatabaseEventSet
'Usage
Dim eventSet As DatabaseEventSet
Dim anEvent As DatabaseEvent
Dim returnValue As DatabaseEventSet
returnValue = (eventSet - anEvent)
public static DatabaseEventSet operator -(
DatabaseEventSet eventSet,
DatabaseEvent anEvent
)
public:
static DatabaseEventSet^ operator -(
DatabaseEventSet^ eventSet,
DatabaseEvent^ anEvent
)
static let inline (-)
eventSet:DatabaseEventSet *
anEvent:DatabaseEvent : DatabaseEventSet
JScript supports the use of overloaded operators, but not the declaration of new ones.
Parameters
- eventSet
Type: Microsoft.SqlServer.Management.Smo.DatabaseEventSet
A DatabaseEventSet object that specifies the database event set.
- anEvent
Type: Microsoft.SqlServer.Management.Smo.DatabaseEvent
A DatabaseEvent object that specifies the database events.
Return Value
Type: Microsoft.SqlServer.Management.Smo.DatabaseEventSet
A DatabaseEventSet object value that specifies a set of database events.