SqlAssemblyEvents.SubscribeToEvents SqlAssemblyEvents.SubscribeToEvents SqlAssemblyEvents.SubscribeToEvents Method

Definition

Specifies the assembly events to receive.

Overloads

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.

SubscribeToEvents(SqlAssemblyEventSet) SubscribeToEvents(SqlAssemblyEventSet) SubscribeToEvents(SqlAssemblyEventSet)

Specifies the assembly events to receive.

public:
 void SubscribeToEvents(Microsoft::SqlServer::Management::Smo::SqlAssemblyEventSet ^ events);
public void SubscribeToEvents (Microsoft.SqlServer.Management.Smo.SqlAssemblyEventSet events);
Public Sub SubscribeToEvents (events As SqlAssemblyEventSet)
Parameters
events
SqlAssemblyEventSet SqlAssemblyEventSet SqlAssemblyEventSet

A SqlAssemblyEventSet object that specifies the set of events to receive.

Examples

Handling SMO Events

Remarks

Events are sent to the event handlers that are registered with the ServerEvent event.

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

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

public:
 void SubscribeToEvents(Microsoft::SqlServer::Management::Smo::SqlAssemblyEventSet ^ events, Microsoft::SqlServer::Management::Smo::ServerEventHandler ^ eventHandler);
public void SubscribeToEvents (Microsoft.SqlServer.Management.Smo.SqlAssemblyEventSet events, Microsoft.SqlServer.Management.Smo.ServerEventHandler eventHandler);
Public Sub SubscribeToEvents (events As SqlAssemblyEventSet, eventHandler As ServerEventHandler)
Parameters
events
SqlAssemblyEventSet SqlAssemblyEventSet SqlAssemblyEventSet

A SqlAssemblyEventSet object that specifies the set of events to receive.

eventHandler
ServerEventHandler ServerEventHandler ServerEventHandler

A ServerEventHandler object that handles the events that are received.

Examples

Handling SMO Events

Applies to