ServerEvents.SubscribeToEvents Method (ServerTraceEventSet)

 

Specifies the server trace events to receive.

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

public void SubscribeToEvents(
	ServerTraceEventSet events
)

Parameters

events
Type: Microsoft.SqlServer.Management.Smo.ServerTraceEventSet

A ServerTraceEventSet object that specifies the set of trace events to receive.

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

Return to top
Show: