ServerEvents.SubscribeToEvents Method (ServerEventSet)
Specifies the server events to receive.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub SubscribeToEvents ( _
events As ServerEventSet _
)
'Usage
Dim instance As ServerEvents
Dim events As ServerEventSet
instance.SubscribeToEvents(events)
public void SubscribeToEvents(
ServerEventSet events
)
public:
void SubscribeToEvents(
ServerEventSet^ events
)
member SubscribeToEvents :
events:ServerEventSet -> unit
public function SubscribeToEvents(
events : ServerEventSet
)
Parameters
- events
Type: Microsoft.SqlServer.Management.Smo.ServerEventSet
A ServerEventSet object that specifies the set of events to receive.
Remarks
Events are sent to the event handlers that are registered with the OnEvent statement.