Subtraction-Operator
Creates an object event set by performing a subtraction operation on an ObjectEvent object and an ObjectEventSet object.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Shared Operator - ( _
eventSet As ObjectEventSet, _
anEvent As ObjectEvent _
) As ObjectEventSet
'Usage
Dim eventSet As ObjectEventSet
Dim anEvent As ObjectEvent
Dim returnValue As ObjectEventSet
returnValue = (eventSet - anEvent)
public static ObjectEventSet operator -(
ObjectEventSet eventSet,
ObjectEvent anEvent
)
public:
static ObjectEventSet^ operator -(
ObjectEventSet^ eventSet,
ObjectEvent^ anEvent
)
static let inline (-)
eventSet:ObjectEventSet *
anEvent:ObjectEvent : ObjectEventSet
JScript unterstützt die Verwendung überladener Operatoren, aber nicht die Deklaration neuer Operatoren.
Parameter
- eventSet
Typ: Microsoft.SqlServer.Management.Smo. . :: . .ObjectEventSet
An ObjectEventSet object that specifies the object event set.
- anEvent
Typ: Microsoft.SqlServer.Management.Smo. . :: . .ObjectEvent
An ObjectEvent object that specifies the object events.
Rückgabewert
Typ: Microsoft.SqlServer.Management.Smo. . :: . .ObjectEventSet
An ObjectEventSet object value that specifies a set of object events.