ServerEvents.UnsubscribeFromEvents Method (ServerTraceEventSet)
Clears the specified event settings, and removes all event handlers.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Bildirim
Public Sub UnsubscribeFromEvents ( _
events As ServerTraceEventSet _
)
'Kullanım
Dim instance As ServerEvents
Dim events As ServerTraceEventSet
instance.UnsubscribeFromEvents(events)
public void UnsubscribeFromEvents(
ServerTraceEventSet events
)
public:
void UnsubscribeFromEvents(
ServerTraceEventSet^ events
)
member UnsubscribeFromEvents :
events:ServerTraceEventSet -> unit
public function UnsubscribeFromEvents(
events : ServerTraceEventSet
)
Parameters
- events
Type: Microsoft.SqlServer.Management.Smo.ServerTraceEventSet
A ServerTraceEventSet object that specifies the set of events to stop receiving.