ServiceQueueEvents ServiceQueueEvents ServiceQueueEvents Class

Definition

The ServiceQueueEvents object represents the settings required for SQL Server service queue event notification.

public ref class ServiceQueueEvents
public class ServiceQueueEvents
Public Class ServiceQueueEvents
Inheritance
ServiceQueueEventsServiceQueueEventsServiceQueueEvents

Examples

Handling SMO Events

Remarks

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Methods

GetEventSelection() GetEventSelection() GetEventSelection()

Returns the currently selected event notifications.

StartEvents() StartEvents() StartEvents()

Starts receiving events.

StopEvents() StopEvents() StopEvents()

Stops receiving events.

SubscribeToEvents(ServiceQueueEventSet) SubscribeToEvents(ServiceQueueEventSet) SubscribeToEvents(ServiceQueueEventSet)

Specifies the service queue events to receive.

SubscribeToEvents(ServiceQueueEventSet, ServerEventHandler) SubscribeToEvents(ServiceQueueEventSet, ServerEventHandler) SubscribeToEvents(ServiceQueueEventSet, ServerEventHandler)

Specifies the service queue events to receive and the event handler that handles the events.

UnsubscribeAllEvents() UnsubscribeAllEvents() UnsubscribeAllEvents()

Clears all event settings, and removes all event handlers.

UnsubscribeFromEvents(ServiceQueueEventSet) UnsubscribeFromEvents(ServiceQueueEventSet) UnsubscribeFromEvents(ServiceQueueEventSet)

Clears the specified event settings, and removes the specified event handlers.

Events

ServerEvent ServerEvent ServerEvent

Specifies the event raised when an event occurs in ServiceQueue object and the user subscribed to the events from that object instance.

Applies to