ServerEvents.GetTraceEventSelection 方法
Returns the currently selected event notifications.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Function GetTraceEventSelection As ServerTraceEventSet
'用途
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
傳回值
型別:Microsoft.SqlServer.Management.Smo.ServerTraceEventSet
A ServerEventSet object that specifies the set of server events.