共用方式為


SqlAssemblyEventSet.Subtract 方法

Returns an SQL assembly event set after subtracting a new SQL assembly event from the specified event set.

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

語法

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

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

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo.SqlAssemblyEventSet
An SqlAssemblyEventSet object value that specifies the set of SQL assembly events after the event has been subtracted.

範例

處理 SMO 事件

請參閱

參考

SqlAssemblyEventSet 類別

Microsoft.SqlServer.Management.Smo 命名空間