Condividi tramite


Evento ServerEvent

Specifies the event raised when an event occurs in UserDefinedFunction object and the user has subscribed to the events 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 UserDefinedFunctionEvents
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.