Evento Trace.OnEvent
Assigns a certain trace event handler to an event associated with a Trace object.
Spazio dei nomi Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)
Sintassi
'Dichiarazione
Public Event OnEvent As TraceEventHandler
'Utilizzo
Dim instance As Trace
Dim handler As TraceEventHandler
AddHandler instance.OnEvent, handler
public event TraceEventHandler OnEvent
public:
virtual event TraceEventHandler^ OnEvent {
void add (TraceEventHandler^ value);
void remove (TraceEventHandler^ value);
}
abstract OnEvent : IEvent<TraceEventHandler,
TraceEventArgs>
override OnEvent : IEvent<TraceEventHandler,
TraceEventArgs>
JScript supporta l'utilizzo di eventi, ma non la dichiarazione di nuovi eventi.