Subtraction 運算子
Creates a server event set by performing a subtraction operation on a ServerEvent object and a ServerEventSet object.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Shared Operator - ( _
eventSet As ServerEventSet, _
anEvent As ServerEvent _
) As ServerEventSet
'用途
Dim eventSet As ServerEventSet
Dim anEvent As ServerEvent
Dim returnValue As ServerEventSet
returnValue = (eventSet - anEvent)
public static ServerEventSet operator -(
ServerEventSet eventSet,
ServerEvent anEvent
)
public:
static ServerEventSet^ operator -(
ServerEventSet^ eventSet,
ServerEvent^ anEvent
)
static let inline (-)
eventSet:ServerEventSet *
anEvent:ServerEvent : ServerEventSet
JScript 支援多載運算子的使用,但不支援新運算子的宣告。
參數
- eventSet
型別:Microsoft.SqlServer.Management.Smo. . :: . .ServerEventSet
A ServerEventSet object that specifies the server event set.
- anEvent
型別:Microsoft.SqlServer.Management.Smo. . :: . .ServerEvent
A ServerEvent object that specifies the server events.
傳回值
型別:Microsoft.SqlServer.Management.Smo. . :: . .ServerEventSet
A ServerEventSet object value that specifies a set of server events.