ObjectEventSet.Subtraction 運算子
Creates an object event set by performing a subtraction operation on an ObjectEvent object and an ObjectEventSet object.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Shared Operator - ( _
eventSet As ObjectEventSet, _
anEvent As ObjectEvent _
) As ObjectEventSet
'用途
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 支援多載運算子的使用,但不支援新運算子的宣告。
參數
- eventSet
型別:Microsoft.SqlServer.Management.Smo.ObjectEventSet
An ObjectEventSet object that specifies the object event set.
- anEvent
型別:Microsoft.SqlServer.Management.Smo.ObjectEvent
An ObjectEvent object that specifies the object events.
傳回值
型別:Microsoft.SqlServer.Management.Smo.ObjectEventSet
An ObjectEventSet object value that specifies a set of object events.