Aracılığıyla paylaş


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

Examples

Handling SMO Events

See Also

Reference

ServerEvents Class

UnsubscribeFromEvents Overload

Microsoft.SqlServer.Management.Smo Namespace