ServerEvents.UnsubscribeFromEvents ServerEvents.UnsubscribeFromEvents ServerEvents.UnsubscribeFromEvents Method

Definition

Clears the specified event settings, and removes all event handlers.

Overloads

UnsubscribeFromEvents(ServerEventSet) UnsubscribeFromEvents(ServerEventSet) UnsubscribeFromEvents(ServerEventSet)

Clears the specified event settings, and removes all event handlers.

UnsubscribeFromEvents(ServerTraceEventSet) UnsubscribeFromEvents(ServerTraceEventSet) UnsubscribeFromEvents(ServerTraceEventSet)

Clears the specified event settings, and removes all event handlers.

UnsubscribeFromEvents(ServerEventSet) UnsubscribeFromEvents(ServerEventSet) UnsubscribeFromEvents(ServerEventSet)

Clears the specified event settings, and removes all event handlers.

public:
 void UnsubscribeFromEvents(Microsoft::SqlServer::Management::Smo::ServerEventSet ^ events);
public void UnsubscribeFromEvents (Microsoft.SqlServer.Management.Smo.ServerEventSet events);
Public Sub UnsubscribeFromEvents (events As ServerEventSet)
Parameters
events
ServerEventSet ServerEventSet ServerEventSet

A ServerEventSet object that specifies the set of events to stop receiving.

Examples

Handling SMO Events

UnsubscribeFromEvents(ServerTraceEventSet) UnsubscribeFromEvents(ServerTraceEventSet) UnsubscribeFromEvents(ServerTraceEventSet)

Clears the specified event settings, and removes all event handlers.

public:
 void UnsubscribeFromEvents(Microsoft::SqlServer::Management::Smo::ServerTraceEventSet ^ events);
public void UnsubscribeFromEvents (Microsoft.SqlServer.Management.Smo.ServerTraceEventSet events);
Public Sub UnsubscribeFromEvents (events As ServerTraceEventSet)
Parameters
events
ServerTraceEventSet ServerTraceEventSet ServerTraceEventSet

A ServerTraceEventSet object that specifies the set of events to stop receiving.

Examples

Handling SMO Events

Applies to