Condividi tramite


Metodo StoredProcedureEventSet.Add (StoredProcedureEventSet, StoredProcedureEvent)

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

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public Shared Function Add ( _
    eventSet As StoredProcedureEventSet, _
    anEvent As StoredProcedureEvent _
) As StoredProcedureEventSet
'Utilizzo
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

Parametri

Valore restituito

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

Esempi

Gestione degli eventi SMO

Vedere anche

Riferimento

StoredProcedureEventSet Classe

Overload Add

Spazio dei nomi Microsoft.SqlServer.Management.Smo