共用方式為


DatabaseDdlTriggerEventSet.Subtraction 運算子

Creates a database data definition language (DDL) trigger event set by performing a subtraction operation on a DatabaseDdlTriggerEvent object and a DatabaseDdlTriggerEventSet object.

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

語法

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

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

參數

傳回值

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

範例

處理 SMO 事件

請參閱

參考

DatabaseDdlTriggerEventSet 類別

Microsoft.SqlServer.Management.Smo 命名空間