Metodo ServiceQueueEventSet.Add (ServiceQueueEventSet, ServiceQueueEvent)

Returns a Service Broker queue event set after adding a new queue event to the specified 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 ServiceQueueEventSet, _
    anEvent As ServiceQueueEvent _
) As ServiceQueueEventSet
'Utilizzo
Dim eventSet As ServiceQueueEventSet 
Dim anEvent As ServiceQueueEvent 
Dim returnValue As ServiceQueueEventSet 

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

Parametri

Valore restituito

Tipo: Microsoft.SqlServer.Management.Smo.ServiceQueueEventSet
A ServiceQueueEventSet that represents the event set after the new event is added.

Esempi

Gestione degli eventi SMO

Vedere anche

Riferimento

ServiceQueueEventSet Classe

Overload Add

Spazio dei nomi Microsoft.SqlServer.Management.Smo