Dela via


ServerEvents.GetTraceEventSelection Method

Returns the currently selected event notifications.

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

Syntax

'Declaration
Public Function GetTraceEventSelection As ServerTraceEventSet
'Usage
Dim instance As ServerEvents
Dim returnValue As ServerTraceEventSet

returnValue = instance.GetTraceEventSelection()
public ServerTraceEventSet GetTraceEventSelection()
public:
ServerTraceEventSet^ GetTraceEventSelection()
member GetTraceEventSelection : unit -> ServerTraceEventSet 
public function GetTraceEventSelection() : ServerTraceEventSet

Return Value

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