Compartir a través de


Evento ServerEvent

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Broker
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Event ServerEvent As ServerEventHandler
'Uso
Dim instance As MessageTypeEvents
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 admite el uso de eventos, pero no la declaración de otros nuevos.