Partager via


Événement ServerEvent

Specifies the event raised when an event occurs in Trigger object and the user has subscribed to the events from that object instance.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Event ServerEvent As ServerEventHandler
'Utilisation
Dim instance As TriggerEvents
Dim handler As ServerEventHandler

AddHandler instance.ServerEvent, handler
public event ServerEventHandler ServerEvent
public:
 event ServerEventHandler^ ServerEvent {
    void add (ServerEventHandler^ value);
    void remove (ServerEventHandler^ value);
}
member ServerEvent : IEvent<ServerEventHandler,
    ServerEventArgs>
JScript prend en charge l'utilisation d'événements, mais pas la déclaration de nouveaux événements.