共用方式為


Subtraction 運算子

Creates a server data definition language (DDL) trigger event set by performing a subtraction operation on a ServerDdlTriggerEvent object and a ServerDdlTriggerEventSet object.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.SqlEnum (在 Microsoft.SqlServer.SqlEnum.dll 中)

語法

'宣告
Public Shared Operator - ( _
    eventSet As ServerDdlTriggerEventSet, _
    anEvent As ServerDdlTriggerEvent _
) As ServerDdlTriggerEventSet
'用途
Dim eventSet As ServerDdlTriggerEventSet
Dim anEvent As ServerDdlTriggerEvent
Dim returnValue As ServerDdlTriggerEventSet

returnValue = (eventSet - anEvent)
public static ServerDdlTriggerEventSet operator -(
    ServerDdlTriggerEventSet eventSet,
    ServerDdlTriggerEvent anEvent
)
public:
static ServerDdlTriggerEventSet^ operator -(
    ServerDdlTriggerEventSet^ eventSet, 
    ServerDdlTriggerEvent^ anEvent
)
static let inline (-)
        eventSet:ServerDdlTriggerEventSet * 
        anEvent:ServerDdlTriggerEvent  : ServerDdlTriggerEventSet
JScript 支援多載運算子的使用,但不支援新運算子的宣告。

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo. . :: . .ServerDdlTriggerEventSet
A ServerDdlTriggerEventSet object value that specifies a set of server DDL trigger events.