Método UnsubscribeFromEvents (ServerTraceEventSet)
Clears the specified event settings, and removes all event handlers.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
Public Sub UnsubscribeFromEvents ( _
events As ServerTraceEventSet _
)
'Uso
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
)
Parâmetros
- events
Tipo: Microsoft.SqlServer.Management.Smo. . :: . .ServerTraceEventSet
A ServerTraceEventSet object that specifies the set of events to stop receiving.
Consulte também