Share via


ServiceQueueEventSet.Add-Methode (ServiceQueueEvent)

Returns a Service Broker queue event set after adding a new queue event to the referenced set.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Function Add ( _
    anEvent As ServiceQueueEvent _
) As ServiceQueueEventSet
'Usage
Dim instance As ServiceQueueEventSet 
Dim anEvent As ServiceQueueEvent 
Dim returnValue As ServiceQueueEventSet 

returnValue = instance.Add(anEvent)
public ServiceQueueEventSet Add(
    ServiceQueueEvent anEvent
)
public:
ServiceQueueEventSet^ Add(
    ServiceQueueEvent^ anEvent
)
member Add : 
        anEvent:ServiceQueueEvent -> ServiceQueueEventSet
public function Add(
    anEvent : ServiceQueueEvent
) : ServiceQueueEventSet

Parameter

Rückgabewert

Typ: Microsoft.SqlServer.Management.Smo.ServiceQueueEventSet
A ServiceQueueEventSet that represents the event set.

Beispiele

Behandeln von SMO-Ereignissen

Siehe auch

Verweis

ServiceQueueEventSet Klasse

Add-Überladung

Microsoft.SqlServer.Management.Smo-Namespace