Export (0) Print
Expand All

DatabaseEvents.SubscribeToEvents Method (DatabaseEventSet)

Specifies the database events to receive.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public void SubscribeToEvents(
	DatabaseEventSet events
)

Parameters

events
Type: Microsoft.SqlServer.Management.Smo.DatabaseEventSet
A DatabaseEventSet object that specifies the set of events to receive.

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

Community Additions

ADD
Show:
© 2014 Microsoft