共用方式為


StoredProcedureEventSet.Subtract 方法

Returns a set of stored procedure events after subtracting a stored procedure event from the specified event set.

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

語法

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

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

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo.StoredProcedureEventSet
A StoredProcedureEventSet object value that specifies a set of stored procedure events after the stored procedure event is subtracted.

範例

處理 SMO 事件

請參閱

參考

StoredProcedureEventSet 類別

Microsoft.SqlServer.Management.Smo 命名空間