Dela via


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

'Declaration
Public Sub UnsubscribeFromEvents ( _
    events As ServerTraceEventSet _
)
'Usage
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