Condividi tramite


Evento ServerEvent

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

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public Event ServerEvent As ServerEventHandler
'Utilizzo
Dim instance As LoginEvents
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 supporta l'utilizzo di eventi, ma non la dichiarazione di nuovi eventi.