ViewEvents ViewEvents ViewEvents Class

Definition

The ViewEvents object represents the settings that are required for SQL Server view event notification.

public ref class ViewEvents
public class ViewEvents
Public Class ViewEvents
Inheritance
ViewEventsViewEventsViewEvents

Examples

Handling SMO Events

Remarks

The ViewEvents 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(ViewEventSet) SubscribeToEvents(ViewEventSet) SubscribeToEvents(ViewEventSet)

Specifies the view events to receive.

SubscribeToEvents(ViewEventSet, ServerEventHandler) SubscribeToEvents(ViewEventSet, ServerEventHandler) SubscribeToEvents(ViewEventSet, ServerEventHandler)

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

UnsubscribeAllEvents() UnsubscribeAllEvents() UnsubscribeAllEvents()

Clears all event settings, and removes all event handlers.

UnsubscribeFromEvents(ViewEventSet) UnsubscribeFromEvents(ViewEventSet) UnsubscribeFromEvents(ViewEventSet)

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

Events

ServerEvent ServerEvent ServerEvent

Specifies the server event handler for view events.

Applies to