共用方式為


StoredProcedureEventSet.Add 方法 (StoredProcedureEventSet, StoredProcedureEvent)

Returns a set of stored procedure events after adding a new stored procedure event to the specified event set.

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

語法

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

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

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo.StoredProcedureEventSet
A StoredProcedureEventSet object that specifies the stored procedure event set after the new event is added.

範例

處理 SMO 事件

請參閱

參考

StoredProcedureEventSet 類別

Add 多載

Microsoft.SqlServer.Management.Smo 命名空間