DatabaseEvents.UnsubscribeFromEvents Method
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 DatabaseEventSet _
)
'Usage
Dim instance As DatabaseEvents
Dim events As DatabaseEventSet
instance.UnsubscribeFromEvents(events)
public void UnsubscribeFromEvents(
DatabaseEventSet events
)
public:
void UnsubscribeFromEvents(
DatabaseEventSet^ events
)
member UnsubscribeFromEvents :
events:DatabaseEventSet -> unit
public function UnsubscribeFromEvents(
events : DatabaseEventSet
)
Parameters
- events
Type: Microsoft.SqlServer.Management.Smo.DatabaseEventSet
A DatabaseEventSet object that specifies the set of events to stop receiving.