Export (0) Print
Expand All

ServerEvents.SubscribeToEvents Method (ServerEventSet)

Specifies the server events to receive.

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

public void SubscribeToEvents(
	ServerEventSet events


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

Events are sent to the event handlers that are registered with the OnEvent statement.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft