مشاركة عبر


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

Examples

Handling SMO Events

See Also

Reference

DatabaseEvents Class

Microsoft.SqlServer.Management.Smo Namespace