SqlAssemblyEvents SqlAssemblyEvents SqlAssemblyEvents Class

Definition

The SqlAssemblyEvents object represents the settings that are required for SQL Server assembly event notification.

public ref class SqlAssemblyEvents
public class SqlAssemblyEvents
Public Class SqlAssemblyEvents
Inheritance
SqlAssemblyEventsSqlAssemblyEventsSqlAssemblyEvents

Examples

Handling SMO Events

Remarks

The SqlAssemblyEvents 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(SqlAssemblyEventSet) SubscribeToEvents(SqlAssemblyEventSet) SubscribeToEvents(SqlAssemblyEventSet)

Specifies the assembly events to receive.

SubscribeToEvents(SqlAssemblyEventSet, ServerEventHandler) SubscribeToEvents(SqlAssemblyEventSet, ServerEventHandler) SubscribeToEvents(SqlAssemblyEventSet, ServerEventHandler)

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

UnsubscribeAllEvents() UnsubscribeAllEvents() UnsubscribeAllEvents()

Clears all event settings, and removes all event handlers.

UnsubscribeFromEvents(SqlAssemblyEventSet) UnsubscribeFromEvents(SqlAssemblyEventSet) UnsubscribeFromEvents(SqlAssemblyEventSet)

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

Events

ServerEvent ServerEvent ServerEvent

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

Applies to