UnsubscribeFromEvents méthode (ServerEventSet)
Clears the specified event settings, and removes all event handlers.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Sub UnsubscribeFromEvents ( _
events As ServerEventSet _
)
'Utilisation
Dim instance As ServerEvents
Dim events As ServerEventSet
instance.UnsubscribeFromEvents(events)
public void UnsubscribeFromEvents(
ServerEventSet events
)
public:
void UnsubscribeFromEvents(
ServerEventSet^ events
)
member UnsubscribeFromEvents :
events:ServerEventSet -> unit
public function UnsubscribeFromEvents(
events : ServerEventSet
)
Paramètres
- events
Type : Microsoft.SqlServer.Management.Smo. . :: . .ServerEventSet
A ServerEventSet object that specifies the set of events to stop receiving.