Condividi tramite


Metodo Add (SqlAssemblyEventSet, SqlAssemblyEvent)

Returns an SQL assembly event set after adding a new SQL assembly 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 SqlAssemblyEventSet, _
    anEvent As SqlAssemblyEvent _
) As SqlAssemblyEventSet
'Utilizzo
Dim eventSet As SqlAssemblyEventSet
Dim anEvent As SqlAssemblyEvent
Dim returnValue As SqlAssemblyEventSet

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

Parametri

Valore restituito

Tipo: Microsoft.SqlServer.Management.Smo. . :: . .SqlAssemblyEventSet
An SqlAssemblyEventSet object that contains the added SqlAssemblyEvent object.