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