SynonymEvents SynonymEvents SynonymEvents Class

Definition

The SynonymEvents object represents the settings that are required for SQL Server synonym event notification.

public ref class SynonymEvents
public class SynonymEvents
Public Class SynonymEvents
Inheritance
SynonymEventsSynonymEventsSynonymEvents

Remarks

The SynonymEvents class is accessed through Events property and cannot be created as a stand-alone object.

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(ObjectEventSet) SubscribeToEvents(ObjectEventSet) SubscribeToEvents(ObjectEventSet)

Specifies the synonym events to receive.

SubscribeToEvents(ObjectEventSet, ServerEventHandler) SubscribeToEvents(ObjectEventSet, ServerEventHandler) SubscribeToEvents(ObjectEventSet, ServerEventHandler)

Specifies the synonym events to receive and the event handler that handles the events.

UnsubscribeAllEvents() UnsubscribeAllEvents() UnsubscribeAllEvents()

Clears all event settings, and removes all event handlers.

UnsubscribeFromEvents(ObjectEventSet) UnsubscribeFromEvents(ObjectEventSet) UnsubscribeFromEvents(ObjectEventSet)

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

Events

ServerEvent ServerEvent ServerEvent

Specifies the event that is raised when an event occurs in Synonym object, and the user has subscribed to the events from that object instance.

Applies to