共用方式為


ServerDdlTriggerEventSet.Subtract 方法

Returns a set of server DDL trigger events after subtracting a DDL trigger event from the specified set of event set.

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

語法

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

returnValue = ServerDdlTriggerEventSet.Subtract(eventSet, _
    anEvent)
public static ServerDdlTriggerEventSet Subtract(
    ServerDdlTriggerEventSet eventSet,
    ServerDdlTriggerEvent anEvent
)
public:
static ServerDdlTriggerEventSet^ Subtract(
    ServerDdlTriggerEventSet^ eventSet, 
    ServerDdlTriggerEvent^ anEvent
)
static member Subtract : 
        eventSet:ServerDdlTriggerEventSet * 
        anEvent:ServerDdlTriggerEvent -> ServerDdlTriggerEventSet
public static function Subtract(
    eventSet : ServerDdlTriggerEventSet, 
    anEvent : ServerDdlTriggerEvent
) : ServerDdlTriggerEventSet

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo.ServerDdlTriggerEventSet
A ServerDdlTriggerEventSet object value that specifies a set of server DDL trigger events after the specified event has been subtracted.

範例

處理 SMO 事件

請參閱

參考

ServerDdlTriggerEventSet 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

DDL 事件群組