共用方式為


DatabaseDdlTriggerEventSet.Subtract 方法

Returns a set of database DDL trigger events after removing an event from the event specified set.

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

語法

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

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

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo.DatabaseDdlTriggerEventSet
A DatabaseDdlTriggerEventSet object value that specifies a set of database DDL trigger events after the event has been removed.

範例

處理 SMO 事件

請參閱

參考

DatabaseDdlTriggerEventSet 類別

Microsoft.SqlServer.Management.Smo 命名空間