SubscribeToEvents méthode (ServerEventSet)
Specifies the server events to receive.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Sub SubscribeToEvents ( _
events As ServerEventSet _
)
'Utilisation
Dim instance As ServerEvents
Dim events As ServerEventSet
instance.SubscribeToEvents(events)
public void SubscribeToEvents(
ServerEventSet events
)
public:
void SubscribeToEvents(
ServerEventSet^ events
)
member SubscribeToEvents :
events:ServerEventSet -> unit
public function SubscribeToEvents(
events : ServerEventSet
)
Paramètres
- events
Type : Microsoft.SqlServer.Management.Smo. . :: . .ServerEventSet
A ServerEventSet object that specifies the set of events to receive.
Notes
Events are sent to the event handlers that are registered with the OnEvent statement.